Feature request #3808

get rid of annoying svg messages

Added by Alister Hood almost 6 years ago. Updated almost 3 years ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:Build / Install
Target version:Future Release - Nice to have
Platform:Windows Resolution:fixed/implemented
Platform version: Pull Request or Patch supplied:Yes
Status info:0 Tag:

Description

I see (in DebugView) the annoying set of messages (below) in the following circumstances:

- every time I add an svg (any svg) to a composer layout.

- when I open a saved project the messages are repeated for each layout that contains an svg (or perhaps for each svg on each layout - I don't know, as I always have just one svg per layout, a north arrow).

The attached patch fixes the svgs included in qgis, so I no longer get the messages. But it seems very strange to me that these messages were output when opening a project. Why would qgis need to read these svgs, when they are not used in the project? And why would it need to read them repeatedly, for every composer layout with an svg?

r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 couldn't create image from  "pastedpic_10102008_233747.png" 
r25564 QColor::setNamedColor: Unknown color name 'character_n'
r25564 QColor::setNamedColor: Unknown color name 'character_n'
r25564 QColor::setNamedColor: Unknown color name 'character_n'

fix_svg_messages.patch (27.3 kB) Alister Hood, 05/08/2011 05:36 pm

fix_svg_messages_clean.patch (25.6 kB) Alister Hood, 05/08/2011 05:42 pm

0001-fix-errors-in-some-svgs-3808.patch (26.2 kB) Alister Hood, 09/20/2011 08:20 pm

History

Updated by Alister Hood almost 6 years ago

My editor automatically changed UTF to utf in the first line of each file. I'll attach a "clean" patch without those changes too.

Updated by Alister Hood over 5 years ago

here's a git patch in case it saves someone a little time

I didn't quite make it clear in the description - this patch simply fixes some minor errors in a few of the svgs included with QGIS

Updated by Giovanni Manghi over 5 years ago

  • Target version set to Version 1.7.4

Updated by Giovanni Manghi almost 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Alister Hood almost 3 years ago

  • Status changed from Open to Closed
  • Resolution set to fixed/implemented

Some cleanup work on the svgs also fixed the offending ones of this.

But it seems very strange to me that these messages were output when opening a project. Why would qgis need to read these svgs, when they are not used in the project? And why would it need to read them repeatedly, for every composer layout with an svg?

And it looks like this has been fixed as well - if I replace one of the "broken" svgs I only get the error message at times when I would actually expect QGIS to read it.

Also available in: Atom