Feature request #3808

get rid of annoying svg messages

Added by Alister Hood over 13 years ago. Updated over 10 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Build/Install
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Easy fix?:No Copied to github as #:13866

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 Magnifier (27.3 KB) Alister Hood, 2011-05-08 05:36 PM

fix_svg_messages_clean.patch Magnifier (25.6 KB) Alister Hood, 2011-05-08 05:42 PM

0001-fix-errors-in-some-svgs-3808.patch Magnifier (26.2 KB) Alister Hood, 2011-09-20 08:20 PM

History

#1 Updated by Alister Hood over 13 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.

#2 Updated by Alister Hood about 13 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

#3 Updated by Giovanni Manghi almost 13 years ago

  • Target version set to Version 1.7.4

#4 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#5 Updated by Pirmin Kalberer about 12 years ago

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

#6 Updated by Alister Hood over 10 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 PDF