summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2013-01-28 20:04:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-01-29 07:55:08 +0000
commit78fde59e65bf1fbf8290e60b8cbe4b34e3489b93 (patch)
tree0acaca43eba596e280cb33e531d81ac698711736 /svtools
parentMore fixes to fdo#57422 (diff)
downloadcore-78fde59e65bf1fbf8290e60b8cbe4b34e3489b93.tar.gz
core-78fde59e65bf1fbf8290e60b8cbe4b34e3489b93.zip
Resolving crash in wizards fdo#59931 by NULL checking
Change-Id: Iccc3f3b2913f21a3831ce55c706aa4dd1da53ad6 Reviewed-on: https://gerrit.libreoffice.org/1909 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/roadmap.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx
index a0239cfb409a..6a236884ce67 100644
--- a/svtools/source/control/roadmap.cxx
+++ b/svtools/source/control/roadmap.cxx
@@ -700,7 +700,10 @@ namespace svt
SetFont( aFont );
RoadmapTypes::ItemId curItemID = GetCurrentRoadmapItemID();
RoadmapItem* pLabelItem = GetByID( curItemID );
- pLabelItem->ToggleBackgroundColor(rStyleSettings.GetHighlightColor());
+ if (pLabelItem != NULL)
+ {
+ pLabelItem->ToggleBackgroundColor(rStyleSettings.GetHighlightColor());
+ }
Invalidate();
}
}