3dbox shapes are corrupted when page size is changed

Bug #187668 reported by groendraakie
12
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Maximilian Albert

Bug Description

After drawing a view 3d boxes on a A4 page size drawing and changing the page from portrait to landscape, the 3d boxes are corrupted and unrecognizable.
Their positions do not match with the handles, etc.

Tags: 3dbox

Related branches

Revision history for this message
groendraakie (bas-inkscape) wrote :

the version of inkscape I use is Inkscape 0.45+0.46pre0+devel, built Jan 15 2008
screenshots will be added. With this comment it is the "before"-screen

Revision history for this message
groendraakie (bas-inkscape) wrote :

This comment includes a screenshot of the "after" screen

Revision history for this message
Tom Davidson (tjd-mit) wrote : Re: 3d boxes are corrupted when changing page orientation

Confirmed on SVN rev 17209 (Jan 30) under Linux. 3D box is also corrupted by using 'fit page to selection', or changing the paper size.

Changed in inkscape:
assignee: nobody → cilix
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Maximilian Albert (cilix) wrote : Re: 3d boxes are corrupted when changing page size

Thanks for reporting this. However, this is not restricted to 3D boxes. It happens with all kinds of objects. Just draw a simple rectangle or ellipse and use "fit page to selection" or any other method as described above. The handles will always be off and the shapes are sometimes screwed up.

A quick glance seems to suggest that this is yet another occurrence of the annoying mixture-of-coordinate-systems bug in Inkscape (desktop vs. item coordinates). Something about the item coordinates or the transform matrix probably doesn't get updated when the page size changes. Also note that it only goes wrong when the page _height_ is changed; setting the page width doesn't have a malicious effect.

I unassigned this bug from myself and changed the caption because it is not specifically 3D box related. But I'll keep an eye on it and fix it if I find the cause. If anyone else is faster than me, please go ahead (my time is severely limited during the next 2-3 weeks).

Changed in inkscape:
assignee: cilix → nobody
Revision history for this message
bbyak (buliabyak) wrote : Re: shapes are corrupted when changing page size

purely cosmetic, no data corruption, so low priority

Changed in inkscape:
importance: Medium → Low
Revision history for this message
Tom Davidson (tjd-mit) wrote :

Actually, no.

1) draw a 3d Box in the middle of the page
2) 'fit page to selection' -->box is drawn correctly in the new page, but the control nodes are elsewhere
3) save to tmp.svg
4) close inkscape and reopen tmp.svg
5) 3D box appears outside the page, and the control handles still appear back in the location corresponding to the box (see screenshot)

I.e. Not just a redraw error, as it survives restarting of inkscape, as with the Rectangle error. Perhaps this is 3D box related, after all?

Changed in inkscape:
importance: Low → Medium
Revision history for this message
Tom Davidson (tjd-mit) wrote :

Re-assigning to Maximilian Albert:
While there is a problem for all shapes where node handles are not redrawn on resize, that problem is just cosmetic, and can be fixed by just clicking on the object, or switching tools (probably this should be a separate bug). 3Dbox objects, however are actually corrupted. You can verify this by saving and reopening the file--the 3dbox node handles are in the wrong place, and the selection bounding box is also out of place (see the latest screenshot)

Changed in inkscape:
assignee: nobody → cilix
Revision history for this message
Tom Davidson (tjd-mit) wrote :

This looks very very similar to the bug seen in behavior of 3d box objects when they are part of a group (bug 188991)...

It seems that in both cases, the objects are getting transformed, but the control handles are not. In both cases, if you trigger the bug, then go move the control handles, the 3dbox jumps back to its location before the transform or page resize...

Revision history for this message
Tom Davidson (tjd-mit) wrote :

(The issue of node handles not being redrawn correctly for objects other than 3d boxes upon page resize is at bug 179373 )

Revision history for this message
iglooo101 (iglooo101) wrote :

http://screencast.com/t/pbQpY0X5WHE
take a look at this jing
a real bug

Revision history for this message
iglooo101 (iglooo101) wrote :

I am on VISTA and using INK .46

Revision history for this message
yossi (farjoun) wrote :

I think that there's something real going on. For example, guides get moved differently from objects. So an object that is originally aligned with guides is no longer so aligned after resizing the document. See attachment.

Yossi.

tags: added: 3dbox
Revision history for this message
Maximilian Albert (cilix) wrote :

The issues with Portrait->Landscape and changing paper sizes are now fixed (bzr rev. 8911). There is still a glitch when using "Fit page to selection" but this should be covered in a different bug report.

Changed in inkscape:
status: Confirmed → Fix Released
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.48
status: Fix Released → Fix Committed
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Fix Released
Revision history for this message
Patrick Storz (ede123) wrote :

Follow up bug #567858: "3dbox corrupted after 'Fit page to selection'"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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