summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2008-12-30 10:26:14 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2008-12-30 10:26:14 +0100
commit033bf7a0b5baa26af94ad006f6576d04c8609e9e (patch)
tree499e36f09515f2bc3f23cf09e2364666888002bb /src/commands.cpp
parent3a95c3cd621e3904d717b591aaa9f2c89959981e (diff)
downloaddbmodel-033bf7a0b5baa26af94ad006f6576d04c8609e9e.tar.xz
Implement orthogonal line drawing
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 1ff3def..4d6a5bb 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -155,7 +155,8 @@ void
RemoveObjectCommand::undo()
{
m_document->addItem(m_object);
- foreach (DiagramConnection *connection, m_connections)
+ foreach (DiagramConnection *connection, m_connections) {
m_document->addItem(connection);
+ }
m_owner = false;
}