diff --git a/src/base/label.cpp b/src/base/label.cpp index efd28c8c..6cf72f5b 100644 --- a/src/base/label.cpp +++ b/src/base/label.cpp @@ -279,7 +279,7 @@ namespace Wisteria::GraphItems { if (!IsOk()) { - wxRect(); + return wxRect{}; } if (!GetCachedBoundingBox().IsEmpty())