Skip to content

Commit 897c30f

Browse files
author
STATKART\kuikar
committed
GetMap call now uses the canvas size
1 parent 207bc82 commit 897c30f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boundingbox_dialog.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def CalculateBB(self):
6767
namesearch = "<tr><td>Name</td><td>(.+?)</td>"
6868
nameresult = re.search(namesearch, layer.metadata())
6969
name= nameresult.group(1)
70-
width=iface.mapCanvas().extent().width()
70+
width=iface.mapCanvas().size().width()
7171
width=str(width)
72-
height=iface.mapCanvas().extent().height()
72+
height=iface.mapCanvas().size().height()
7373
height=str(height)
7474
formatsearch = "<tr><td>Image Formats</td><td>(.+?)</td>"
7575
formatresult = re.search(formatsearch, layer.metadata())

0 commit comments

Comments
 (0)