mirror of https://github.com/GNOME/gimp.git
also cut the message at a '\r' character. Fixes the remaining aspect of
2007-11-08 Sven Neumann <sven@gimp.org> * app/display/gimpstatusbar.c (gimp_statusbar_vprintf): also cut the message at a '\r' character. Fixes the remaining aspect of bug #492718. svn path=/trunk/; revision=24091
This commit is contained in:
parent
869daa3fbc
commit
e985096088
|
@ -1,3 +1,9 @@
|
|||
2007-11-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpstatusbar.c (gimp_statusbar_vprintf): also cut
|
||||
the message at a '\r' character. Fixes the remaining aspect of
|
||||
bug #492718.
|
||||
|
||||
2007-11-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* libgimp/gimpenums.c.tail: replaced by generated version.
|
||||
|
|
|
@ -1171,6 +1171,10 @@ gimp_statusbar_vprintf (const gchar *format,
|
|||
message = g_strdup_vprintf (format, args);
|
||||
|
||||
/* guard us from multi-line strings */
|
||||
newline = strchr (message, '\r');
|
||||
if (newline)
|
||||
*newline = '\0';
|
||||
|
||||
newline = strchr (message, '\n');
|
||||
if (newline)
|
||||
*newline = '\0';
|
||||
|
|
Loading…
Reference in New Issue