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

Barth Netterfield netterfield at astro.utoronto.ca
Mon Jul 4 18:10:50 CEST 2011


SVN commit 1239274 by netterfield:

Ahh... that's why my fix didn't work:  I forgot to commit :-)

Nicolas: try this.


 M  +2 -2      cartesianrenderitem.cpp  
 M  +2 -0      plotitemdialog.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/cartesianrenderitem.cpp #1239273:1239274
@@ -47,8 +47,8 @@
     context.penWidth = painter->pen().width(); //floating point??
     context.xLog = plotItem()->xAxis()->axisLog();
     context.yLog = plotItem()->yAxis()->axisLog();
-    context.xLogBase = 10.0/*plotItem()->xLogBase()*/;
-    context.yLogBase = 10.0/*plotItem()->yLogBase()*/;
+    context.xLogBase = 10.0;
+    context.yLogBase = 10.0;
     context.foregroundColor = painter->pen().color();
     context.backgroundColor = painter->brush().color();
 
--- branches/work/kst/portto4/kst/src/libkstapp/plotitemdialog.cpp #1239273:1239274
@@ -708,6 +708,7 @@
     _plotItem->setProjectionRect(_plotItem->projectionRect(), _plotItem->xAxis()->isDirty());
     _plotItem->setManuallyHideBottomAxisLabel(_xAxisTab->hideBottomLeft());
     _plotItem->setManuallyHideTopAxisLabel(_xAxisTab->hideTopRight());
+    _plotItem->setProjectionRect(_plotItem->computedProjectionRect(), true); //need to recompute
   }
   kstApp->mainWindow()->document()->setChanged(true);
 }
@@ -732,6 +733,7 @@
     _plotItem->setProjectionRect(_plotItem->projectionRect(), _plotItem->yAxis()->isDirty());
     _plotItem->setManuallyHideLeftAxisLabel(_yAxisTab->hideBottomLeft());
     _plotItem->setManuallyHideRightAxisLabel(_yAxisTab->hideTopRight());
+    _plotItem->setProjectionRect(_plotItem->computedProjectionRect(), true); //need to recompute
   }
   kstApp->mainWindow()->document()->setChanged(true);
 }


More information about the Kst mailing list