diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-08-13 14:55:34 +0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-13 16:28:53 +0000 |
commit | 6a223ad5ac390881b54eeed7b39ea181962b1274 (patch) | |
tree | 1563b971a8de98288a8cdd67b3074fd9fb8ef158 | |
parent | bb7800ca04a81093ebeb37fd2ec4982268c1ea6c (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>
-rw-r--r-- | svx/source/sidebar/line/LineWidthControl.cxx | 4 |
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(); } |