From ba85330d74d2dd463f3e429e06fb572312c233d3 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Thu, 1 Jun 2023 16:51:40 +0200
Subject: [PATCH] Geometry: Minor fix.

---
 src/View/Geometry/PlotXY.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/View/Geometry/PlotXY.py b/src/View/Geometry/PlotXY.py
index 4293d8fc..89492bf4 100644
--- a/src/View/Geometry/PlotXY.py
+++ b/src/View/Geometry/PlotXY.py
@@ -108,7 +108,8 @@ class PlotXY(APlot):
         self.canvas.axes.autoscale()
         self.canvas.figure.tight_layout()
         self.canvas.figure.canvas.draw_idle()
-        self.toolbar.update()
+        if self.toolbar is not None:
+            self.toolbar.update()
 
         self._init = True
 
-- 
GitLab