Verified Commit 504d5dc8 authored by ita1024's avatar ita1024

Resize the diagram scene after reorganizing the map

parent 6707fef2
Semantik 1.0.9
--------------
* Display pictures and diagrams on the main map
* Display picture and diagram thumbnails on the main map
Semantik 1.0.8
--------------
......
......@@ -1214,6 +1214,8 @@ void canvas_view::reorganize() {
delete mv;
}
QRectF l_oRect = scene()->itemsBoundingRect().adjusted(-15, -15, 15, 15);
scene()->setSceneRect(l_oRect);
}
void canvas_view::pack(QMap<int, double> &width, QMap<int, double> &height, QMap<int, QList<int> >&children, int id, int level, int left) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment