mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Fix opening previously saved 2.1 project grid overlapping. Fixes #2734
This commit is contained in:
parent
d50614aed7
commit
21bed54768
@ -191,6 +191,11 @@ def _convert_2_1_0(topo, topo_path):
|
||||
"""
|
||||
topo["revision"] = 9
|
||||
|
||||
if "grid_size" in topo:
|
||||
# drawing_grid_size should be the same size as grid_size
|
||||
# to avoid overlapping grids
|
||||
topo["drawing_grid_size"] = topo["grid_size"]
|
||||
|
||||
for node in topo.get("topology", {}).get("nodes", []):
|
||||
if "properties" in node:
|
||||
if node["node_type"] in ("qemu", "vmware", "virtualbox"):
|
||||
|
Loading…
Reference in New Issue
Block a user