From 66cd1fcea8d5d3ce46dc4fb9c3f63baa9294cac5 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Fri, 16 Feb 2018 06:41:42 +0100 Subject: [PATCH] UI-Coordinates: fix insidious bug util::contains used to pick the overload for strings, i.e. it first converted the UI-Coordinates to diagnostic output format and then searched that string for '*' to determine if the pattern is explicit works as expected, but not what you'd intend.... ...and breaks spectacularly once you search for something as innocuous as '.' --- src/gui/interact/ui-coord.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/interact/ui-coord.hpp b/src/gui/interact/ui-coord.hpp index d313ca876..daab564cb 100644 --- a/src/gui/interact/ui-coord.hpp +++ b/src/gui/interact/ui-coord.hpp @@ -290,6 +290,7 @@ namespace interact { /* === String representation === */ + explicit operator string() const { if (isnil (*this))