summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-06-27 08:42:19 +0200
committerAndras Timar <andras.timar@collabora.com>2015-08-06 12:52:46 +0200
commit7c3ad4c3d2359dd6469510313c8016acf9f3ecce (patch)
tree318c72e5d47dff7fea90fbc3e6e379087a2d6258 /svtools
parent0dfa11a063e48e800a0e581ad40275fc6b1181cd (diff)
Related tdf#92322: fix crash with doCursor
0 0x00002aaaafaf3b0c in BrowseBox::DoShowCursor(char const*) (this=0x2f424e0) at /home/julien/compile-libreoffice/libreoffice/svtools/source/brwbox/brwbox1.cxx:182 1 0x00002aaaafafe392 in BrowseBox::GetFocus() (this=0x2f424e0) at /home/julien/compile-libreoffice/libreoffice/svtools/source/brwbox/brwbox1.cxx:2489 2 0x00002aaaafb27966 in svt::EditBrowseBox::GetFocus() (this=0x2f424e0) at /home/julien/compile-libreoffice/libreoffice/svtools/source/brwbox/editbrowsebox.cxx:237 3 0x00002aaab1b5706a in vcl::Window::CompatGetFocus() (this=0x2f424e0) at /home/julien/compile-libreoffice/libreoffice/vcl/source/window/window.cxx:3948 See https://bugs.documentfoundation.org/attachment.cgi?id=116859 Change-Id: I664884ee9333055707aecd7ad309c1a97596b71b Reviewed-on: https://gerrit.libreoffice.org/16583 Reviewed-by: Philippe Jung <phil.jung@free.fr> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index 2da27e8ca2b6..98b8904a4f2c 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -179,6 +179,8 @@ short BrowseBox::GetCursorHideCount() const
void BrowseBox::DoShowCursor( const char * )
{
+ if (!getDataWindow())
+ return;
short nHiddenCount = --getDataWindow()->nCursorHidden;
if (PaintCursorIfHiddenOnce())
{