diff options
author | Jan-Marek Glogowski <jan-marek.glogowski@extern.cib.de> | 2019-11-13 13:02:01 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-11-13 16:51:24 +0100 |
commit | 9bc848cf0d301aa57eabcffa101a1cf87bad6470 (patch) | |
tree | d446edb5afaf3b7ee30cc6509a82c2d9b52b6d9c /pyuno | |
parent | fc950a685ec337f38b4b040c80272c00b8b88b77 (diff) |
tdf#123851 Qt5 handle broken ScrollBar values
libreoffice-6-4-branch-point
If the scrollbar has a mnMin == 0 and mnMax == 0 then nVisibleSize
is set to -1?! I don't know if a negative nVisibleSize makes any
sense, so this just handles this case without crashing LO with a
SIGFPE in the Qt library. If min == max then the visible size is
just zero.
It's actually not clear, that this crash is the same then the bug
report, but it fixes at least the later reproducer crash.
Change-Id: Ib2dd51ddecfd24ddf2d89f746cbc8975269e13da
Reviewed-on: https://gerrit.libreoffice.org/82600
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'pyuno')
0 files changed, 0 insertions, 0 deletions