From ab2f4dbc8daa65f95dbb2c75ad11f20435f8c140 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 16 Nov 2009 23:04:33 +0100 Subject: Avoid double-formatting strings containing percent sign --- libgtk_kylix/GTKForms.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgtk_kylix/GTKForms.pas') diff --git a/libgtk_kylix/GTKForms.pas b/libgtk_kylix/GTKForms.pas index d6c650b..f1f5440 100644 --- a/libgtk_kylix/GTKForms.pas +++ b/libgtk_kylix/GTKForms.pas @@ -737,7 +737,7 @@ begin Exit; end; Dialog := gtk_message_dialog_new(ParentWindow, GTK_DIALOG_MODAL or GTK_DIALOG_DESTROY_WITH_PARENT, TMessageStyleID[Integer(Style)], - GTK_BUTTONS_NONE, StringToPgchar(Text)); + GTK_BUTTONS_NONE, StringToPgchar(EscapeFormatStr(Text))); for i := 1 to NumMessageButtons do if TMessageButton(i - 1) in Buttons then gtk_dialog_add_button(PGtkDialog(Dialog), MessageButtonID[i], i); -- cgit v1.2.3