Skip to content

Commit

Permalink
Patch for QgsXmlUltils. (#769)
Browse files Browse the repository at this point in the history
* Patch for QgsXmlUltils.

* Typo

---------

Co-authored-by: wlorenzetti <[email protected]>
  • Loading branch information
wlorenzetti and wlorenzetti authored Mar 1, 2024
1 parent 36c20be commit 0b50140
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions g3w-admin/qplotly/vendor/DataPlotly/core/plot_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ def read_xml(self, element: QDomElement) -> bool:
self.source_layer_id = res.get('source_layer_id', None)
self.data_defined_properties.loadVariant(res.get('dynamic_properties', None), PlotSettings.DYNAMIC_PROPERTIES)

# With QGIS > 3.28 the QgsXmlutils.readVariant method has a new behavior for Qstring type parameters
if self.layout['title'] == None:
self.layout['title'] = ''

return True

def write_to_project(self, document: QDomDocument):
Expand Down

0 comments on commit 0b50140

Please sign in to comment.