Kaydet (Commit) 54f27df8 authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile

i124570 - Prevent a null pointer dereference

üst be3e9eb3
...@@ -766,6 +766,7 @@ namespace svt ...@@ -766,6 +766,7 @@ namespace svt
SetFont( aFont ); SetFont( aFont );
RoadmapTypes::ItemId curItemID = GetCurrentRoadmapItemID(); RoadmapTypes::ItemId curItemID = GetCurrentRoadmapItemID();
RoadmapItem* pLabelItem = GetByID( curItemID ); RoadmapItem* pLabelItem = GetByID( curItemID );
if ( pLabelItem != NULL )
pLabelItem->ToggleBackgroundColor(rStyleSettings.GetHighlightColor()); pLabelItem->ToggleBackgroundColor(rStyleSettings.GetHighlightColor());
Invalidate(); Invalidate();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment