Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#3841 closed defect (fixed)

Export to image/clipboard has too tight bounding boxes

Reported by: Christoph <buchner@…> Owned by: Adeel Asghar
Priority: normal Milestone:
Component: OMEdit Version:
Keywords: Cc:

Description

In an OMEdit diagram view, I right-click, export as an Image, set a path, hit save, and.. nothing happens: The dialog does not go away, no picture is being created, I can only exit by canceling.

Expected behaviour: Close the dialog, and save an image file.

This happens for all available image types.
This happens on OMEdit v1.10.0-dev-53-g45d32fb

Attachments (4)

Export_as_image.png (3.3 KB ) - added by Christoph <buchner@…> 9 years ago.
screenshot.PNG (5.1 KB ) - added by Christoph <buchner@…> 9 years ago.
Export to clipboard.png (3.0 KB ) - added by Christoph <buchner@…> 9 years ago.
sdfdsf_2.png (3.4 KB ) - added by Christoph <buchner@…> 9 years ago.

Download all attachments as: .zip

Change History (17)

comment:1 by Christoph <buchner@…>, 9 years ago

hm, wait, it seems this has gone away after restarting OMEdit, but now the images saved don't contain labels. I'll investigate more.

comment:2 by Christoph <buchner@…>, 9 years ago

So, I found that image export works (sorry I can't edit the initial ticket description), but if a component has a long name (I suspect longer than the icon is wide), the component name gets *omitted* in the exported image. See attached file, and screenshot for reference.

by Christoph <buchner@…>, 9 years ago

Attachment: Export_as_image.png added

by Christoph <buchner@…>, 9 years ago

Attachment: screenshot.PNG added

comment:3 by Christoph <buchner@…>, 9 years ago

Summary: Export as an Image is brokenExport as an Image omits long component names

comment:4 by Christoph <buchner@…>, 9 years ago

Summary: Export as an Image omits long component namesExport Image/clipboard omits long component names

comment:5 by Christoph <buchner@…>, 9 years ago

Export to clipboard does the same.

Also, both cut the bounding box too tight, so graphical elements like the output triangle of integrator2 in the above file gets cut off.

Additionally, export to clipboard has some weird wrapping issues, see the left border of the attached file.

by Christoph <buchner@…>, 9 years ago

Attachment: Export to clipboard.png added

comment:6 by Christoph <buchner@…>, 9 years ago

OK, rearranging the icons shows that the reason behind the omitted names seem to be the too tight bounding boxes, as the name of the top-most component gets cut off, see following image.

by Christoph <buchner@…>, 9 years ago

Attachment: sdfdsf_2.png added

comment:7 by Christoph <buchner@…>, 9 years ago

Summary: Export Image/clipboard omits long component namesExport to image/clipboard has too tight bounding boxes

comment:8 by Adeel Asghar, 9 years ago

Milestone: Future1.10.0

Fixed in a9c53de/OMEdit.
I am keeping the ticket open so test and let me know.

comment:9 by Christoph <buchner@…>, 9 years ago

Thank you! The responsiveness of OM devs is amazing!

Today's nightly build seems to have failed : "Looks like the node went offline during the build. Check the slave log for the details", so I'll have to wait until tomorrow for a new build to test.

comment:10 by Adrian Pop, 9 years ago

I will restart the builds.

comment:11 by Adrian Pop, 9 years ago

@Christoph: a 64bit windows build is available now.

comment:12 by Christoph <buchner@…>, 9 years ago

Resolution: fixed
Status: newclosed

Confirmed fixed, thank you!

comment:13 by Martin Sjölund, 7 years ago

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.