Small images can't be painted correctly using Paintbrush

Bug #1181929 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Medium
Cameron White

Bug Description

Pinta-1.5-preview-20130518 on Windows XP:
1. Open new 16 x 16 px image.
2. View | Pixel Grid (not required step, but easier to follow).
3. From zoom drop-down list select 3600%.
4. Click on Paintbrush.
5. Select Brash width to 1.
6. Move mouse to the right-top edge of the image.
7. Draw straight 'line' on last 'column' from top-right cell, to bottom-right cell.
You will notice that 'line' can't be drawn - just few first cells are painted (see attachment top image). Expected is to see whole column painted.
Now minimize Pinta and maximize it again (it looks some action is performed) and 'line' is displayed, but bottom part of image is not displayed on proper site. It is expected to be on right site, but it appears on left site (see attachment bottom image).

This bug looks like with low priority, but if you are trying to create some small icons like 16 x 16 px or 32 x 32 px, then Pinta becomes almost nightmare to do some job. It would be nice if this is fixed in version 1.5.

Revision history for this message
grofaty (grofaty) wrote :
Changed in pinta:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
assignee: nobody → Cameron White (cameronwhite91)
milestone: none → 1.5
status: Confirmed → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

Tested on master on Windows XP and problem is not entirely fixed.
1. Open 16 x 16.
2. Paintbrush and draw 'line' from top-right to bottom-right. But when you draw 'line' draw it so, that whole line is not drawn - so draw in a way that you cross right border, go over the edge. When you go over the edge in preview of Image pad it is displayed some elements on left site, but in canvas itself it is not displayed yet (some refresh canvas problem). But if Pinta is minimized and maximized the image gets updated (refreshed canvas) exactly as it is in preview of Image pad.

So it looks to me, when something is drawn outside of the right border it gets painted in the left site.

Changed in pinta:
status: Fix Committed → New
Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
status: New → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

I updated master and problem still appears (exactly the same as with previous master).

Changed in pinta:
status: Fix Committed → New
Revision history for this message
Cameron White (cameronwhite91) wrote :

It's fixed for me (both on Windows and Linux). Are there any more specific steps to reproduce, and are you sure that you updated correctly?

Revision history for this message
grofaty (grofaty) wrote :

I always download git master from the following link: https://github.com/PintaProject/Pinta/archive/master.zip Like I understand it always downloads master.

I can reproduce on master on Windows XP:
1. New 16 x 16 image.
2. Zoom to 3600%.
3. Painbrush from Tools.
4. Now on right-top to right-bottom draw 'line' but don't draw it on canvas, but next to canvas (in gray area).
The result some line still appears in left site of canvas (if not try to minimize and maximize Pinta).

Revision history for this message
grofaty (grofaty) wrote :

... by the way. Is there any way we can put git last commit (master) hash on Help | About, so when testing users could provide the git hash value of last commit.

Revision history for this message
Cameron White (cameronwhite91) wrote :

Ah, I didn't notice that it was the PaintBrush tool. I fixed this issue for the Pencil tool, which had a similar issue.

I'll look into doing that. It might be easier to just mention the git hash value in the file name of the development preview's installer.

Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
status: New → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

Tested using master on Windows XP. The problem is fixed. Thanks.

Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.