[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Tue Jun 8 21:35:06 CEST 2004


CVS commit by staikos: 

fix assertion, update fixes


  M +4 -2      kst2dplot.cpp   1.61
  M +0 -1      kstviewwidget.cpp   1.39


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.60:1.61
@@ -849,5 +849,4 @@ void Kst2DPlot::paint(QPainter& p) {
 
 void Kst2DPlot::draw() {
-  kdDebug() << "Drawing!" << endl;
   _buffer.buffer().resize(size());
   _buffer.buffer().fill(backgroundColor());
@@ -2130,4 +2130,5 @@ void Kst2DPlot::mouseReleaseEvent(QWidge
       KstApp::inst()->labelDialog()->showI(this, i_label, x, y);
     }
+    return; // no need to update, and we don't want to set INACTIVE
   }
 
@@ -2714,4 +2715,5 @@ void Kst2DPlot::dropEvent(QWidget *view,
 
       KstLabel *l = p->labelList.take(label);
+      p->update();
       assert(l);
       labelList.append(l);

--- kdeextragear-2/kst/kst/kstviewwidget.cpp  #1.38:1.39
@@ -252,5 +252,4 @@ void KstViewWidget::paint() {
 void KstViewWidget::paintEvent(QPaintEvent *e) {
   Q_UNUSED(e)
-  kdDebug() << "Paint event" << endl;
   _view->paint();
 }





More information about the Kst mailing list