Pārlūkot izejas kodu

fixed some accuracy issues

naelstrof 12 gadus atpakaļ
vecāks
revīzija
12f2559b50
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      main.cpp

+ 2
- 2
main.cpp Parādīt failu

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.