2015-03-04 18:04:32 +10:00
|
|
|
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 @@
|
2013-09-26 18:11:50 +11:00
|
|
|
option->state |= state;
|
|
|
|
option->rect = image->rect();
|
|
|
|
|
|
|
|
- QPainter painter(image);
|
2015-03-04 18:04:32 +10:00
|
|
|
- QApplication::style()->drawComplexControl(element, option, &painter);
|
2013-09-26 18:11:50 +11:00
|
|
|
+ // 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);
|
2015-03-04 18:04:32 +10:00
|
|
|
+ QApplication::style()->drawComplexControl(element, option, &painter);
|
2013-09-26 18:11:50 +11:00
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
2014-06-20 16:53:24 +04:00
|
|
|
void lcl_drawFrame(QStyle::PrimitiveElement element, QImage* image, QStyle::State state)
|