summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-08-13 14:55:34 +0300
committerAndras Timar <andras.timar@collabora.com>2015-08-20 14:13:47 +0200
commitab51771907a5c0586c5120fe6d3ecdf15fe3ed75 (patch)
treef27f76434aac8ef9a16bf8a6685bf1dbb468c2bc /svx
parent3c75a2d5375f44d494a8b1dd04a8d30fa3afb338 (diff)
tdf#93407 GrabFocus during dispose
Reproduced with the gen vclplug Change-Id: Ia8a5c73908f5af47ef55b4431b6e1e5a21609e7d (cherry picked from commit b556f14fab25ddccbe9a54fe53450a641dbc5a49) Reviewed-on: https://gerrit.libreoffice.org/17705 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/line/LineWidthControl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sidebar/line/LineWidthControl.cxx b/svx/source/sidebar/line/LineWidthControl.cxx
index 2ee411ca4c82..37bac4a02d95 100644
--- a/svx/source/sidebar/line/LineWidthControl.cxx
+++ b/svx/source/sidebar/line/LineWidthControl.cxx
@@ -184,9 +184,9 @@ void LineWidthControl::Initialize()
void LineWidthControl::GetFocus()
{
- if(!mbVSFocus)
+ if (!mbVSFocus && maMFWidth)
maMFWidth->GrabFocus();
- else
+ else if (maVSWidth)
maVSWidth->GrabFocus();
}