From d14b55605040d4d207dadb1f421a59f4aa36a823 Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Fri, 4 Mar 2016 15:49:38 +0100 Subject: [PATCH] Fix crash when changing page color --- src/domain/UBGraphicsStrokesGroup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain/UBGraphicsStrokesGroup.cpp b/src/domain/UBGraphicsStrokesGroup.cpp index 0ab954f2..b2275a1e 100644 --- a/src/domain/UBGraphicsStrokesGroup.cpp +++ b/src/domain/UBGraphicsStrokesGroup.cpp @@ -84,7 +84,8 @@ void UBGraphicsStrokesGroup::setColor(const QColor &color, colorType pColorType) } } - mDebugText->setBrush(QBrush(color)); + if (mDebugText) + mDebugText->setBrush(QBrush(color)); } QColor UBGraphicsStrokesGroup::color(colorType pColorType) const