summaryrefslogtreecommitdiffstats
path: root/ToolAddRect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ToolAddRect.cpp')
-rw-r--r--ToolAddRect.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ToolAddRect.cpp b/ToolAddRect.cpp
index 888205d..bf62c51 100644
--- a/ToolAddRect.cpp
+++ b/ToolAddRect.cpp
@@ -10,6 +10,7 @@ Room ToolAddRect::createRoom() {
room.addVertex(Vertex(v1.getX(), v2->getY()));
room.addVertex(*v2);
room.addVertex(Vertex(v2->getX(), v1.getY()));
+ room.close();
return room;
}