[Kst] branches/work/kst/portto4/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Thu Apr 7 16:07:39 CEST 2011


SVN commit 1227319 by netterfield:

BUG:
geometry options in the export graphics dialog were not honored.
Now they are.


 M  +7 -9      mainwindow.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1227318:1227319
@@ -430,21 +430,19 @@
   foreach (View *view, _tabWidget->views()) {
     QSize size;
     if (display == 0) {
-      size.setWidth(width);
-      size.setHeight(height);
-    } else if (display == 1) {
-      size.setWidth(width);
-      size.setHeight(width);
-    } else if (display == 2) {
       QSize sizeWindow(view->geometry().size());
-
       size.setWidth(width);
       size.setHeight((int)((double)width * (double)sizeWindow.height() / (double)sizeWindow.width()));
-    } else {
+    } else if (display == 1){
       QSize sizeWindow(view->geometry().size());
-
       size.setHeight(height);
       size.setWidth((int)((double)height * (double)sizeWindow.width() / (double)sizeWindow.height()));
+    } else if (display == 2) {
+      size.setWidth(width);
+      size.setHeight(height);
+    } else { //if (display == 3) {
+      size.setWidth(width);
+      size.setHeight(width);
     }
 
 


More information about the Kst mailing list