Possible bug makes objects turn black on undo operation

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Possible bug makes objects turn black on undo operation

Postby seans_potato_biz » Fri Apr 13, 2018 11:47 pm

I think I have found a bug in Inkscape and I'd like someone else to confirm it and then I'll make a bug report.

My file is available here: https://www.dropbox.com/s/j8ad768rbi29q ... c.svg?dl=0

I created the file using an online service to convert an MS PowerPoint file into an SVG. The problem is that when you move certain objects (e.g. one of the orange ones) and then press Ctrl + Z, the object moves back but it also turns black! Any idea what is happening? If you save and re-open, the colour returns to normal unless next time you move something and press undo again.
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Possible bug makes objects turn black on undo operation

Postby tylerdurden » Sat Apr 14, 2018 12:27 am

Not sure if it's a bug really, but here's a workaround:

Set Transforms to optimized in the preferences.

Select all the objects and move them up one tap on the up arrow key and then use the arrow key to move them back down. (This re-writes all the objects in Inkscape's method. )

The object colors should remain steady.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Possible bug makes objects turn black on undo operation

Postby Moini » Sat Apr 14, 2018 6:51 am

The colors are applied via CSS classes. Inkscape doesn't fully support that yet in Inkscape 0.92.3.

Funny enough, it's even worse with the development version, although that is supposed to be more advanced in that respect. There, upon opening, the objects are all black (or rather: fill is unset) already.

What works is the following workaround:

- Open file with Firefox,
- print to file (pdf)
- open the pdf with Inkscape, do some ungrouping
- works correctly now, style is applied to the objects, not as a class.

But yes, please make a report for this. It's something that devs will be interested to know about. Undo functionality should be fixed for this.
You can also mention that the file opens with unset colors in the master development branch (or just let me know the bug link here).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Possible bug makes objects turn black on undo operation

Postby Moini » Sat Apr 14, 2018 6:52 am

(or just export to pdf from powerpoint, that should be quicker for the next one)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Re: Possible bug makes objects turn black on undo operation

Postby seans_potato_biz » Wed May 02, 2018 11:04 pm

Thanks for the workarounds. I made a bug report for the issue: https://bugs.launchpad.net/inkscape/+bug/1763730
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Possible bug makes objects turn black on undo operation

Postby Moini » Thu May 03, 2018 8:25 am

Thank you very much! :-D
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Discuss Software Issues”