mirror of
https://abf.rosa.ru/djam/libreoffice.git
synced 2025-02-23 10:32:59 +00:00
19 lines
1 KiB
Diff
19 lines
1 KiB
Diff
diff -urN libreoffice-4.4.1.2/vcl/unx/kde4/KDESalGraphics.cxx libreoffice-4.4.1.2-patched/vcl/unx/kde4/KDESalGraphics.cxx
|
|
--- libreoffice-4.4.1.2/vcl/unx/kde4/KDESalGraphics.cxx 2015-02-21 03:33:24.000000000 +1000
|
|
+++ libreoffice-4.4.1.2-patched/vcl/unx/kde4/KDESalGraphics.cxx 2015-03-03 18:43:59.757706658 +1000
|
|
@@ -159,8 +159,13 @@
|
|
option->state |= state;
|
|
option->rect = image->rect();
|
|
|
|
- QPainter painter(image);
|
|
- QApplication::style()->drawComplexControl(element, option, &painter);
|
|
+ // Hack: Don't display tiny useless scrollbars
|
|
+ // Impress is known to crash when adding effects (segfault is triggered by 15x18 scrollbar)
|
|
+ if (!((option->type == QStyleOption::SO_Slider) && ((option->rect.width() * option->rect.height()) < 300)))
|
|
+ {
|
|
+ QPainter painter(image);
|
|
+ QApplication::style()->drawComplexControl(element, option, &painter);
|
|
+ }
|
|
}
|
|
|
|
void lcl_drawFrame(QStyle::PrimitiveElement element, QImage* image, QStyle::State state)
|