[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/formeditor
From: Jarosław Staniek <staniek () kde ! org>
Date: 2009-10-22 20:05:09
Message-ID: 1256241909.026662.14922.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1039138 by staniek:
Forms
* fix painting selection rectangle: before it sometimes cleared the grid vertically
M +2 -2 container.cpp
--- trunk/koffice/kexi/formeditor/container.cpp #1039137:1039138
@@ -509,9 +509,9 @@
startRow = qMax(startRow, 1);
int endRow = (r.bottom()+1) / gridY;
endRow = qMin(endRow, rows);
- int startCol = r.left() / gridX;
+ int startCol = (r.left()-1) / gridX;
startCol = qMax(startCol, 1);
- int endCol = r.right() / gridX;
+ int endCol = (r.right()+1) / gridX;
endCol = qMin(endCol, cols);
QVector<QPoint> gridpoints;
for (int rowcursor = startRow; rowcursor <= endRow; ++rowcursor) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic