Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#3677 closed defect (fixed)

Paint should center images smaller than the canvas

Reported by: manuq Owned by: humitos
Priority: Unspecified by Maintainer Milestone:
Component: Paint Version: Unspecified
Severity: Unspecified Keywords: 12.1.0, patch
Cc: humitos Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

This regression was introduced in f935dcb0f2fed1fe69acd35f46e6cffa3758cfac to fix #3457 . A proper fix should center images smaller than the canvas.

To easily create a small image:

  • start paint, paint something
  • do a rectangle selection, go to edit toolbar, copy
  • click on the clipboard that appears at the lower left corner, start with paint

Attachments (4)

paint-centered.png (16.1 KB) - added by manuq 12 years ago.
Shows the bug
paint-centered-ok.png (16.1 KB) - added by manuq 12 years ago.
Shows how it was before f935dcb0f2fed1fe69acd35f46e6cffa3758cfac
0001-Center-images-smaller-than-the-canvas-SL-3677.patch (1.2 KB) - added by humitos 12 years ago.
0001-Center-images-smaller-than-the-canvas-SL-3677.2.patch (1.4 KB) - added by humitos 12 years ago.
Version 2

Download all attachments as: .zip

Change History (10)

comment:1 Changed 12 years ago by manuq

  • Owner set to humitos
  • Status changed from new to assigned

Changed 12 years ago by manuq

Shows the bug

Changed 12 years ago by manuq

Shows how it was before f935dcb0f2fed1fe69acd35f46e6cffa3758cfac

comment:2 Changed 12 years ago by manuq

  • Component changed from untriaged to Paint
  • Keywords 12.1.0 added
  • Milestone changed from Unspecified by Release Team to 0.96

comment:3 Changed 12 years ago by humitos

  • Cc humitos added
  • Keywords patch added

Patch sent and attached here. Test and review is needed.

comment:4 Changed 12 years ago by manuq

Tested the patch. Smaller pics are centered again. But when a large picture is rotated, it is left aligned, not centered.

TestCase:

  • start Paint from scratch
  • draw something
  • open the last subtoolbar (the tool button has a portrait)
  • rotate

Changed 12 years ago by humitos

Version 2

comment:5 Changed 12 years ago by manuq

  • Resolution set to fixed
  • Status changed from assigned to closed

Pushed v2, thanks!

comment:6 Changed 11 years ago by dnarvaez

  • Milestone 0.96 deleted

Milestone 0.96 deleted

Note: See TracTickets for help on using tickets.