mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 02:00:04 +00:00
Ensure radar product view is not null prior to running mouse picking
This commit is contained in:
parent
f9d621d940
commit
e2bb6563dc
1 changed files with 5 additions and 0 deletions
|
|
@ -342,6 +342,11 @@ bool RadarProductLayer::RunMousePicking(
|
||||||
std::shared_ptr<view::RadarProductView> radarProductView =
|
std::shared_ptr<view::RadarProductView> radarProductView =
|
||||||
context()->radar_product_view();
|
context()->radar_product_view();
|
||||||
|
|
||||||
|
if (radarProductView == nullptr)
|
||||||
|
{
|
||||||
|
return itemPicked;
|
||||||
|
}
|
||||||
|
|
||||||
std::optional<std::uint16_t> binLevel =
|
std::optional<std::uint16_t> binLevel =
|
||||||
radarProductView->GetBinLevel(mouseGeoCoords);
|
radarProductView->GetBinLevel(mouseGeoCoords);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue