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

Mike Fenton mike at staikos.net
Mon Feb 11 21:49:35 CET 2008


SVN commit 773811 by fenton:

Add reverse drawing of the relations.


 M  +9 -0      plotrenderitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #773810:773811
@@ -319,6 +319,15 @@
 #endif
 
   painter->save();
+
+  if (plotItem()->xAxisReversed()) {
+    painter->scale(-1, 1);
+    painter->translate(-1.0 * rect().right() - rect().left(), 0);
+  }
+  if (plotItem()->yAxisReversed()) {
+    painter->scale(1, -1);
+    painter->translate(0, -1.0 * rect().bottom() - rect().top());
+  }
   painter->setClipRect(rect());
   paintRelations(painter);
 


More information about the Kst mailing list