From d3013316bc6efbac5b6ba51efbc8bd556820814b Mon Sep 17 00:00:00 2001 From: Stefan Wildemann Date: Fri, 11 Dec 2015 11:01:54 +0100 Subject: Qt5: Use default svg size if size not given --- navit/graphics/qt5/graphics_qt5.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'navit/graphics/qt5/graphics_qt5.cpp') diff --git a/navit/graphics/qt5/graphics_qt5.cpp b/navit/graphics/qt5/graphics_qt5.cpp index a2e9ca127..9d24bbf7d 100644 --- a/navit/graphics/qt5/graphics_qt5.cpp +++ b/navit/graphics/qt5/graphics_qt5.cpp @@ -258,9 +258,9 @@ image_new(struct graphics_priv *gr, struct graphics_image_methods *meth, char *p { dbg(lvl_debug,"render %s\n", path); /* try to render this */ - /* assume 16 pixel if size is not given */ - if(*w <= 0) *w = 16; - if(*h <= 0) *h = 16; + /* assume "standard" size if size is not given */ + if(*w <= 0) *w = renderer.defaultSize().width(); + if(*h <= 0) *h = renderer.defaultSize().height(); image_priv->pixmap=new QPixmap(*w, *h); image_priv->pixmap->fill(Qt::transparent); QPainter painter(image_priv->pixmap); -- cgit v1.2.1