[Libreoffice-commits] core.git: svx/source
Maxim Monastirsky
momonasmon at gmail.com
Thu Aug 13 05:00:41 PDT 2015
svx/source/sidebar/line/LineWidthControl.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b556f14fab25ddccbe9a54fe53450a641dbc5a49
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date: Thu Aug 13 14:55:34 2015 +0300
tdf#93407 GrabFocus during dispose
Reproduced with the gen vclplug
Change-Id: Ia8a5c73908f5af47ef55b4431b6e1e5a21609e7d
diff --git a/svx/source/sidebar/line/LineWidthControl.cxx b/svx/source/sidebar/line/LineWidthControl.cxx
index 4053c49..62a5170 100644
--- a/svx/source/sidebar/line/LineWidthControl.cxx
+++ b/svx/source/sidebar/line/LineWidthControl.cxx
@@ -179,9 +179,9 @@ void LineWidthControl::Initialize()
void LineWidthControl::GetFocus()
{
- if(!mbVSFocus)
+ if (!mbVSFocus && maMFWidth)
maMFWidth->GrabFocus();
- else
+ else if (maVSWidth)
maVSWidth->GrabFocus();
}
More information about the Libreoffice-commits
mailing list