Browse Source

fixed some accuracy issues

naelstrof 11 years ago
parent
commit
12f2559b50
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      main.cpp

+ 2
- 2
main.cpp View File

152
                     // We pull the dimensions and positions from the selection rectangle.
152
                     // We pull the dimensions and positions from the selection rectangle.
153
                     // The selection rectangle automatically converts the positions and
153
                     // The selection rectangle automatically converts the positions and
154
                     // dimensions to absolute coordinates when we set them earilier.
154
                     // dimensions to absolute coordinates when we set them earilier.
155
-                    x = selection->m_x+selection->m_xoffset;
156
-                    y = selection->m_y+selection->m_yoffset;
155
+                    x = selection->m_x+selection->m_xoffset+borderSize;
156
+                    y = selection->m_y+selection->m_yoffset+borderSize;
157
                     w = selection->m_width;
157
                     w = selection->m_width;
158
                     h = selection->m_height;
158
                     h = selection->m_height;
159
                     // Delete the rectangle.
159
                     // Delete the rectangle.