Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.5.0, 4.6.1
-
None
-
Ubuntu-Intel / Qt 4.5.0
Scratchbox-Intel / Qt 4.6.1 or Qt 4.6.3
-
13732b74e07fe10e95f2601f6cf2d0be78467eaa
Description
I want to check the recommended aspect ratio of a SVG file in a time-critical situation, so I write the following example program:
#include <QImageReader> #include <QDebug> int main(int argc, char **argv) { QImageReader reader("Suojatie.svg"); qDebug() << reader.size(); }
I expect it to return any QSize with a reasonable aspect ratio. However, it crashes (Ubuntu) or aborts (Scratchbox). The abort message is:
ASSERT: "!m_nodes.isEmpty()" in file qsvghandler.cpp, line 3644
Aborted (core dumped)
I have attached two SVG's (from Wikipedia) which both cause this behavior.