[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kchart/shape
From: Inge Wallin <inge () lysator ! liu ! se>
Date: 2010-05-13 17:37:10
Message-ID: 20100513173711.00DDEAC8B4 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1126333 by ingwa:
Fix the minimum size for the plotarea. Earler tests indicated that
10x10 was enough, but more testing revealed that it wasn't. No matter
how much I fiddle with the size, I never got it to crash with 20x20.
The real fix, of course, is to not crash in kdchart (hint, hint, KDAB
:-) ).
M +1 -1 PlotArea.cpp
--- trunk/koffice/kchart/shape/PlotArea.cpp #1126332:1126333
@@ -1107,7 +1107,7 @@
// Only paint the actual chart if there is a certain minimal size,
// because otherwise kdchart will crash.
QRect kdchartRect = ScreenConversions::scaleFromPtToPx(paintRect);
- if (kdchartRect.width() > 10 && kdchartRect.height() > 10) {
+ if (kdchartRect.width() > 20 && kdchartRect.height() > 20) {
d->kdChart->paint(&painter, kdchartRect);
}
//painter.restore();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic