From 22f0b4c9c96234e7a7bdefcef5032910d170d918 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期五, 17 十一月 2023 16:47:11 +0800
Subject: [PATCH] 修改模板样式~

---
 ExportMap/Sources/MoonExp.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ExportMap/Sources/MoonExp.py b/ExportMap/Sources/MoonExp.py
index e2ab812..363912f 100644
--- a/ExportMap/Sources/MoonExp.py
+++ b/ExportMap/Sources/MoonExp.py
@@ -144,8 +144,8 @@
 
 size = map.sizeWithUnits()
 print('size: ' + str(size.width()) + " * " + str(size.height()) + " mm")
-if size.width() > 280 or size.height() > 174:
-    map.attemptResize(QgsLayoutSize(280, 174, QgsUnitTypes.LayoutMillimeters))
+if size.width() > 233 or size.height() > 174:
+    map.attemptResize(QgsLayoutSize(233, 174, QgsUnitTypes.LayoutMillimeters))
     print('size: ' + str(map.sizeWithUnits().width()) + " * " + str(map.sizeWithUnits().height()) + " mm")
 
 # 璁剧疆鍥惧眰

--
Gitblit v1.9.3