Skip to content

Commit 5c0dc3d

Browse files
committed
typing: improve typing when selecting a project bbox
1 parent 5eee86b commit 5c0dc3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libqfieldsync/offliners.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ def convert_to_offline(
113113
if bbox and bbox.isFinite():
114114
only_selected = True
115115
for layer in layers:
116+
if layer.type() != QgsMapLayer.LayerType.VectorLayer:
117+
continue
118+
119+
assert isinstance(layer, QgsVectorLayer)
120+
116121
if Qgis.versionInt() >= 33000: # noqa: PLR2004
117122
no_geometry_types = [
118123
Qgis.GeometryType.Null,

0 commit comments

Comments
 (0)