Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit ba9c2a64219531926285a78e017b93312f401c33

Fix artifact when using stamp tool

The damaged area was calculated baased in the brush size instead
of using the stamp size

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Area.py
(12 / 5)
  
445445 if point[1] > max_y:
446446 max_y = point[1]
447447 # add the tool size
448 size = self.tool['line size']
449 min_x = min_x - size
450 min_y = min_y - size
451 max_x = max_x + size
452 max_y = max_y + size
448 if self.tool['name'] == 'stamp':
449 wr, hr = self.stamp_dimentions
450 min_x = min_x - wr
451 min_y = min_y - wr
452 max_x = max_x + hr
453 max_y = max_y + hr
454 else:
455 size = self.tool['line size']
456 min_x = min_x - size
457 min_y = min_y - size
458 max_x = max_x + size
459 max_y = max_y + size
453460 return (min_x, min_y, max_x - min_x, max_y - min_y)
454461
455462 def mousemove(self, widget, event):