Opened 13 years ago

Last modified 13 years ago

#3808 new patch

get rid of annoying svg messages

Reported by: Alister Owned by: nobody
Priority: minor: annoyance Milestone: Version 1.7.0
Component: Build/Install Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Windows
Platform Version: XP Awaiting user input: no

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?

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

Attachments (2)

fix_svg_messages.patch (27.3 KB ) - added by Alister 13 years ago.
fix_svg_messages_clean.patch (25.6 KB ) - added by Alister 13 years ago.

Download all attachments as: .zip

Change History (3)

by Alister, 13 years ago

Attachment: fix_svg_messages.patch added

comment:1 by Alister, 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.

by Alister, 13 years ago

Note: See TracTickets for help on using tickets.