File 0002-Fix-wxString-bool-type-mismatch.patch of Package SuperSlicer

From 8fa09e3f819d3bad3db997f10ba5e58ba3ac2045 Mon Sep 17 00:00:00 2001
From: Mia Herkt <mia@0x0.st>
Date: Tue, 17 Dec 2024 06:07:33 +0100
Subject: [PATCH 02/11] Fix wxString/bool type mismatch

---
 src/slic3r/GUI/Notebook.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/slic3r/GUI/Notebook.hpp b/src/slic3r/GUI/Notebook.hpp
index eb5b673299..9583bc066b 100644
--- a/src/slic3r/GUI/Notebook.hpp
+++ b/src/slic3r/GUI/Notebook.hpp
@@ -423,7 +423,7 @@ public:
     // sets/returns item's image index in the current image list
     virtual bool SetPageImage(size_t n, int imageId) override
     {
-        wxCHECK_MSG(n < GetBtSize(), wxString(), wxS("Invalid page"));
+        wxCHECK_MSG(n < GetBtSize(), false, wxS("Invalid page"));
         assert(n < GetBtSize());
         return GetBtnsListCtrl()->SetPageImage(n, this->GetImageList()->GetBitmap(imageId));
     }
@@ -435,7 +435,7 @@ public:
 
     bool SetPageImage(size_t n, const std::string& bmp_name, const int bmp_size)
     {
-        wxCHECK_MSG(n < GetBtSize(), wxString(), wxS("Invalid page"));
+        wxCHECK_MSG(n < GetBtSize(), false, wxS("Invalid page"));
         assert(n < GetBtSize());
         return GetBtnsListCtrl()->SetPageImage(n, bmp_name, bmp_size);
     }
-- 
2.51.1

openSUSE Build Service is sponsored by