Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions heightmapexport_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from qgis.PyQt.QtGui import QColor, QCursor, QDoubleValidator, QIntValidator
from qgis.PyQt.QtCore import Qt, QLocale
from qgis.gui import (QgsRubberBand, QgsMessageBar, QgsMapLayerComboBox)
from qgis.core import (QgsPointXY, QgsRectangle, QgsProject,
from qgis.core import (QgsWkbTypes, QgsPointXY, QgsRectangle, QgsProject,
QgsGeometry, QgsCoordinateTransform,
QgsCoordinateReferenceSystem, QgsMapLayerProxyModel)
from .heightmapexport_dialog_base_3 import Ui_HeightmapExportDialog
Expand Down Expand Up @@ -394,7 +394,7 @@ def draw_box(self, layer):
if self.extent:
self.canvas.scene().removeItem(self.extent)
self.extent = None
self.extent = QgsRubberBand(self.canvas, True)
self.extent = QgsRubberBand(self.canvas, QgsWkbTypes.PolygonGeometry)
if self.QGIS_VERSION == 2:
points = [QgsPoint(x_max, y_min),
QgsPoint(x_max, y_max),
Expand Down