From 0b5014060098843c232c41f229692349612e49b1 Mon Sep 17 00:00:00 2001 From: Walter Lorenzetti Date: Fri, 1 Mar 2024 10:24:49 +0100 Subject: [PATCH] Patch for QgsXmlUltils. (#769) * Patch for QgsXmlUltils. * Typo --------- Co-authored-by: wlorenzetti --- g3w-admin/qplotly/vendor/DataPlotly/core/plot_settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/g3w-admin/qplotly/vendor/DataPlotly/core/plot_settings.py b/g3w-admin/qplotly/vendor/DataPlotly/core/plot_settings.py index 0b047be2d..b13096129 100644 --- a/g3w-admin/qplotly/vendor/DataPlotly/core/plot_settings.py +++ b/g3w-admin/qplotly/vendor/DataPlotly/core/plot_settings.py @@ -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):