From 1459e5897adfa2a381308d589272baa0b8ee96f3 Mon Sep 17 00:00:00 2001 From: Victor Yacovlev Date: Mon, 4 Dec 2017 15:01:17 +0300 Subject: [PATCH] Possible Robot editor fix (requires test on Windows) --- src/actors/robot/robotmodule.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/actors/robot/robotmodule.cpp b/src/actors/robot/robotmodule.cpp index b210ea39..9267b242 100644 --- a/src/actors/robot/robotmodule.cpp +++ b/src/actors/robot/robotmodule.cpp @@ -240,6 +240,8 @@ namespace ActorRobot { upWallLine->setPen(pen); Scene->addItem(upWallLine); upWallLine->setZValue(1); + Scene->update(); + update(); } void FieldItm::showCharMark(qreal upLeftCornerX, qreal upLeftCornerY, int size) @@ -414,6 +416,8 @@ namespace ActorRobot { downWallLine->setPen(pen); Scene->addItem(downWallLine); downWallLine->setZValue(1); + Scene->update(); + update(); } void FieldItm::setLeftLine(QGraphicsLineItem *Line, QPen pen) @@ -422,6 +426,8 @@ namespace ActorRobot { leftWallLine->setPen(pen); Scene->addItem(leftWallLine); leftWallLine->setZValue(1); + Scene->update(); + update(); } void FieldItm::setRightLine(QGraphicsLineItem *Line, QPen pen) @@ -431,6 +437,8 @@ namespace ActorRobot { Scene->addItem(rightWallLine); rightWallLine->setZValue(1); + Scene->update(); + update(); } bool FieldItm::hasUpWall() -- GitLab