From 71dd0f8f9669c123d13e12790d33de6914b498d2 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 26 Mar 2005 10:45:00 +0000 Subject: [PATCH] Melchior FRANZ: The previous message wasn't totally correct. Strings are now allowed, too. And the pattern is now '[ -+#]?\d*(\.\d*)?l?[fs]' and *may* be embedded in a string. There may only be one %s or %f, though. %% is allowed in the preamble/postamble. (Yes, %ls is allowed, too, and treated as %s.) Also, "end" is superfluous now. --- src/GUI/dialog.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 4cac703b1..bcafd67ae 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -141,13 +141,11 @@ format_callback(puObject *obj, int dx, int dy, void *n) } } - char buf[256], *end; + char buf[256]; const char *src = obj->getLabel(); if (number) { float value = atof(src); - if (end == src) - return; // not a number snprintf(buf, 256, format, value); } else { snprintf(buf, 256, format, src); -- 2.39.5