[education/rkward] rkward/rbackend/rkwarddevice: Make sure image is actually initialized in clear()

Thomas Friedrichsmeier null at kde.org
Sat Mar 26 14:38:33 GMT 2022


Git commit 26efd15dd6c4f2b1bd4210594377c29db404b3d6 by Thomas Friedrichsmeier.
Committed on 26/03/2022 at 12:50.
Pushed by tfry into branch 'master'.

Make sure image is actually initialized in clear()

M  +1    -0    rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp

https://invent.kde.org/education/rkward/commit/26efd15dd6c4f2b1bd4210594377c29db404b3d6

diff --git a/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp b/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp
index 1e2e096c..471f907a 100644
--- a/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp
+++ b/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp
@@ -57,6 +57,7 @@ RKGraphicsDevice::RKGraphicsDevice (double width, double height, const QString &
 	connect (view, &QLabel::destroyed, this, &RKGraphicsDevice::viewKilled);
 	connect (&updatetimer, &QTimer::timeout, this, &RKGraphicsDevice::updateNow);
 	updatetimer.setSingleShot (true);
+	beginPainter();
 	clear ();
 	if (antialias) painter.setRenderHints (QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform);
 	setActive (true);	// sets window title



More information about the rkward-tracker mailing list