From bc7d6366205ffc668a14725e64c33ec1b057f4a2 Mon Sep 17 00:00:00 2001 From: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com> Date: Sat, 22 Feb 2025 15:00:23 -0800 Subject: [PATCH] Fix crash when using Japanese on Windows Work around possible GLib bug in string comparison. --- rtgui/profilepanel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/profilepanel.cc b/rtgui/profilepanel.cc index 0b8fb5fd9..1bb567cb3 100644 --- a/rtgui/profilepanel.cc +++ b/rtgui/profilepanel.cc @@ -138,12 +138,12 @@ ProfilePanel::~ProfilePanel () bool ProfilePanel::isCustomSelected() { - return profiles->getCurrentLabel() == Glib::ustring ("(" + M("PROFILEPANEL_PCUSTOM") + ")"); + return profiles->getCurrentLabel().collate_key() == Glib::ustring ("(" + M("PROFILEPANEL_PCUSTOM") + ")").collate_key(); } bool ProfilePanel::isLastSavedSelected() { - return profiles->getCurrentLabel() == Glib::ustring ("(" + M("PROFILEPANEL_PLASTSAVED") + ")"); + return profiles->getCurrentLabel().collate_key() == Glib::ustring ("(" + M("PROFILEPANEL_PLASTSAVED") + ")").collate_key(); } Gtk::TreeIter ProfilePanel::getCustomRow()