#I don`t know much about C/C++, but i can`t compile qucs without this patch : #linux,gcc-3.2.2,qt-3.3.7 diff -ruN qucs-0.0.12.orig/qucs/schematic.cpp qucs-0.0.12/qucs/schematic.cpp --- qucs-0.0.12.orig/qucs/schematic.cpp 2007-05-16 20:14:01.000000000 +0000 +++ qucs-0.0.12/qucs/schematic.cpp 2007-09-02 09:43:54.000000000 +0000 @@ -474,7 +474,7 @@ float printerDpiY = (float)pmetrics.logicalDpiY(); float printerW = (float)pmetrics.width(); float printerH = (float)pmetrics.height(); - QPaintDeviceMetrics smetrics(QPainter(viewport()).device()); + QPaintDeviceMetrics smetrics((QPainter(viewport())).device()); float screenDpiX = (float)smetrics.logicalDpiX(); float screenDpiY = (float)smetrics.logicalDpiY(); float PrintScale = 0.5;
Hi there!
This one was already reported by a few users. I fixed it (though in another way) and it is in CVS. Thus it will compile for the next release.
Thanks for trying Qucs, Stefan.
Log in to post a comment.
#I don`t know much about C/C++, but i can`t compile qucs without this patch :
#linux,gcc-3.2.2,qt-3.3.7
diff -ruN qucs-0.0.12.orig/qucs/schematic.cpp qucs-0.0.12/qucs/schematic.cpp
--- qucs-0.0.12.orig/qucs/schematic.cpp 2007-05-16 20:14:01.000000000 +0000
+++ qucs-0.0.12/qucs/schematic.cpp 2007-09-02 09:43:54.000000000 +0000
@@ -474,7 +474,7 @@
float printerDpiY = (float)pmetrics.logicalDpiY();
float printerW = (float)pmetrics.width();
float printerH = (float)pmetrics.height();
- QPaintDeviceMetrics smetrics(QPainter(viewport()).device());
+ QPaintDeviceMetrics smetrics((QPainter(viewport())).device());
float screenDpiX = (float)smetrics.logicalDpiX();
float screenDpiY = (float)smetrics.logicalDpiY();
float PrintScale = 0.5;
Hi there!
This one was already reported by a few users. I fixed it (though in another way) and it is in CVS. Thus it will compile for the next release.
Thanks for trying Qucs, Stefan.