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

Mike Fenton mike at staikos.net
Mon Jul 7 23:29:48 CEST 2008


SVN commit 829239 by fenton:

Enable printing and exporting of graphics file.


 M  +0 -8      mainwindow.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #829238:829239
@@ -235,10 +235,6 @@
 
 
 void MainWindow::exportGraphicsFile(const QString &filename, const QString &format, int width, int height, int display) {
-  if (!_doc->isOpen()) {
-    return;
-  }
-
   int viewCount = 0;
   foreach (QGraphicsView *view, _tabWidget->views()) {
     QSize size;
@@ -279,10 +275,6 @@
 
 
 void MainWindow::print() {
-  if (!_doc->isOpen()) {
-    return;
-  }
-
   QPrinter printer(QPrinter::HighResolution);
 
   QPrintDialog pd(&printer, this);


More information about the Kst mailing list