Kaydet (Commit) 78fde59e authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Stephan Bergmann

Resolving crash in wizards fdo#59931 by NULL checking

Change-Id: Iccc3f3b2913f21a3831ce55c706aa4dd1da53ad6
Reviewed-on: https://gerrit.libreoffice.org/1909Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst e252ac07
...@@ -700,7 +700,10 @@ namespace svt ...@@ -700,7 +700,10 @@ namespace svt
SetFont( aFont ); SetFont( aFont );
RoadmapTypes::ItemId curItemID = GetCurrentRoadmapItemID(); RoadmapTypes::ItemId curItemID = GetCurrentRoadmapItemID();
RoadmapItem* pLabelItem = GetByID( curItemID ); RoadmapItem* pLabelItem = GetByID( curItemID );
pLabelItem->ToggleBackgroundColor(rStyleSettings.GetHighlightColor()); if (pLabelItem != NULL)
{
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