@@ -54,6 +54,9 @@ QImage ApplicationScreenshotProvider::requestImage(const QString &imageId, QSize
55 if (app->stage() == ApplicationInfo::SideStage) {
55 if (app->stage() == ApplicationInfo::SideStage) {
56 QByteArray gus = qgetenv("GRID_UNIT_PX");
56 QByteArray gus = qgetenv("GRID_UNIT_PX");
57+ if (gus.isEmpty() || gus.toInt() == 0) {
57 image = image.scaledToWidth(gus.toInt() * 48);
60 image = image.scaledToWidth(gus.toInt() * 48);
59 // Lets scale main stage applications to be the size of the screen/window.
62 // Lets scale main stage applications to be the size of the screen/window.