r21221 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Thu Apr 21 19:47:26 UTC 2016


Author: jghali
Date: Thu Apr 21 19:47:26 2016
New Revision: 21221

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21221
Log:
fix some display refresh issues in table edit mode

Modified:
    trunk/Scribus/scribus/canvas.h
    trunk/Scribus/scribus/canvasmode_edittable.cpp

Modified: trunk/Scribus/scribus/canvas.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21221&path=/trunk/Scribus/scribus/canvas.h
==============================================================================
--- trunk/Scribus/scribus/canvas.h	(original)
+++ trunk/Scribus/scribus/canvas.h	Thu Apr 21 19:47:26 2016
@@ -190,6 +190,7 @@
 		return m_viewMode.redrawPolygon;
 	}
 	void setForcedRedraw(bool on) { m_viewMode.forceRedraw = on; }
+	bool isForcedRedraw() const { return m_viewMode.forceRedraw; }
 	void setPreviewMode(bool on) { m_viewMode.previewMode = on; }
 	bool isPreviewMode() const { return m_viewMode.previewMode || m_viewMode.viewAsPreview; }
 	bool usePreviewVisual() const { return m_viewMode.viewAsPreview && m_viewMode.previewVisual != 0; }

Modified: trunk/Scribus/scribus/canvasmode_edittable.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21221&path=/trunk/Scribus/scribus/canvasmode_edittable.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_edittable.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_edittable.cpp	Thu Apr 21 19:47:26 2016
@@ -314,7 +314,10 @@
 
 void CanvasMode_EditTable::updateCanvas(bool forceRedraw)
 {
-	m_canvas->setForcedRedraw(forceRedraw);
+	// Do not let update timer cancel forced redraw otherwise
+	// we get refresh issues  when typing or selecting text
+	if (!m_canvas->isForcedRedraw())
+		m_canvas->setForcedRedraw(forceRedraw);
 	m_canvas->update(m_canvas->canvasToLocal(m_table->getBoundingRect()));
 }
 




More information about the scribus-commit mailing list