|
@@ -152,7 +152,6 @@ void Editor::showCurrentConnectionMap(QString curDirection) {
|
152
|
152
|
connection_item->setY(y);
|
153
|
153
|
connection_item->setZValue(21);
|
154
|
154
|
scene->addItem(connection_item);
|
155
|
|
- scene->setSceneRect(0, 0, pixmap.width() + map_item->pixmap().width(), pixmap.height() + map_item->pixmap().height());
|
156
|
155
|
|
157
|
156
|
connect(connection_item, SIGNAL(connectionMoved(int)), this, SLOT(onConnectionOffsetChanged(int)));
|
158
|
157
|
onConnectionOffsetChanged(connection->offset.toInt());
|
|
@@ -163,7 +162,6 @@ void Editor::showCurrentConnectionMap(QString curDirection) {
|
163
|
162
|
|
164
|
163
|
if (!connectionExists) {
|
165
|
164
|
if (connection_item) {
|
166
|
|
- scene->removeItem(connection_item);
|
167
|
165
|
delete connection_item;
|
168
|
166
|
connection_item = NULL;
|
169
|
167
|
|