- small changes

This commit is contained in:
Marius Stanciu
2020-01-10 14:55:32 +02:00
parent 2ff9cd2439
commit 7d0a792085
3 changed files with 8 additions and 40 deletions

View File

@@ -8465,7 +8465,7 @@ class App(QtCore.QObject):
self.draw_moving_selection_shape(self.pos, pos, color=self.defaults['global_alt_sel_line'],
face_color=self.defaults['global_alt_sel_fill'])
self.selection_type = False
elif dx > 0:
elif dx >= 0:
self.draw_moving_selection_shape(self.pos, pos)
self.selection_type = True
else:
@@ -8862,6 +8862,7 @@ class App(QtCore.QObject):
pt4 = (float(sel_obj.options['xmin']), float(sel_obj.options['ymax']))
sel_rect = Polygon([pt1, pt2, pt3, pt4])
if self.defaults['units'].upper() == 'MM':
sel_rect = sel_rect.buffer(-0.1)
sel_rect = sel_rect.buffer(0.2)