1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Fix opening previously saved 2.1 project grid overlapping. Fixes #2734

This commit is contained in:
grossmj 2019-03-31 16:48:08 +07:00
parent d50614aed7
commit 21bed54768

View File

@ -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"):