[Libreoffice-commits] core.git: Branch 'feature/gsoc-tiled-rendering' - libreofficekit/source
Pranav Kant
pranavk at gnome.org
Thu Jun 4 00:39:37 PDT 2015
libreofficekit/source/gtk/lokdocview.cxx | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 3aad0cd0428667c4620977cdc6f1f21616a5835e
Author: Pranav Kant <pranavk at gnome.org>
Date: Thu Jun 4 13:08:01 2015 +0530
lokdocview: fixed the values for invalidation region
Change-Id: If7b2cbef01e0a5f953a04717aacfaffc55a6053e
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 2a3a395..d3f0820 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -939,10 +939,10 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
aRectanglePixels.y = twipToPixel(aRectangle.y);
aRectanglePixels.width = twipToPixel(aRectangle.width);
aRectanglePixels.height = twipToPixel(aRectangle.height);
- int rowStart = aRectanglePixels.x / nTileSizePixels;
- int colStart = aRectanglePixels.y / nTileSizePixels;
- int rowEnd = (aRectanglePixels.x + aRectanglePixels.height + nTileSizePixels) / nTileSizePixels;
- int colEnd = (aRectanglePixels.y + aRectanglePixels.width + nTileSizePixels) / nTileSizePixels;
+ int rowStart = aRectanglePixels.y / nTileSizePixels;
+ int colStart = aRectanglePixels.x / nTileSizePixels;
+ int rowEnd = (aRectanglePixels.y + aRectanglePixels.height + nTileSizePixels) / nTileSizePixels;
+ int colEnd = (aRectanglePixels.x + aRectanglePixels.width + nTileSizePixels) / nTileSizePixels;
int i,j;
for (i = rowStart; i < rowEnd; i++) {
for (j = colStart; j < colEnd; j++) {
@@ -967,10 +967,10 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
aRectanglePixels.y = twipToPixel(m_aVisibleCursor.y);
aRectanglePixels.width = twipToPixel(m_aVisibleCursor.width);
aRectanglePixels.height = twipToPixel(m_aVisibleCursor.height);
- int rowStart = aRectanglePixels.x / nTileSizePixels;
- int colStart = aRectanglePixels.y / nTileSizePixels;
- int rowEnd = (aRectanglePixels.x + aRectanglePixels.height + nTileSizePixels) / nTileSizePixels;
- int colEnd = (aRectanglePixels.y + aRectanglePixels.width + nTileSizePixels) / nTileSizePixels;
+ int rowStart = aRectanglePixels.y / nTileSizePixels;
+ int colStart = aRectanglePixels.x / nTileSizePixels;
+ int rowEnd = (aRectanglePixels.y + aRectanglePixels.height + nTileSizePixels) / nTileSizePixels;
+ int colEnd = (aRectanglePixels.x + aRectanglePixels.width + nTileSizePixels) / nTileSizePixels;
int i,j;
for (i = rowStart; i < rowEnd; i++) {
for (j = colStart; j < colEnd; j++) {
More information about the Libreoffice-commits
mailing list