Skip to content

Commit

Permalink
remove fromOldWkbType (api_break)
Browse files Browse the repository at this point in the history
  • Loading branch information
JD LOMENEDE committed Nov 23, 2017
1 parent cd0ba91 commit 13cb8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/db_manager/db_plugins/vlayers/data_model.py
Expand Up @@ -26,7 +26,7 @@
from ..plugin import DbError

from qgis.PyQt.QtCore import QTime, QTemporaryFile
from qgis.core import Qgis, QgsVectorLayer, QgsWkbTypes, QgsVirtualLayerDefinition
from qgis.core import QgsVectorLayer, QgsWkbTypes, QgsVirtualLayerDefinition


class LTableDataModel(TableDataModel):
Expand All @@ -49,7 +49,7 @@ def __init__(self, table, parent=None):
a = f.attributes()
# add the geometry type
if f.hasGeometry():
a.append(QgsWkbTypes.displayString(Qgis.fromOldWkbType(f.geometry().wkbType())))
a.append(QgsWkbTypes.displayString(f.geometry().wkbType()))
else:
a.append('None')
self.resdata.append(a)
Expand Down

0 comments on commit 13cb8e4

Please sign in to comment.