[gnote] Fix crash in search
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix crash in search
- Date: Sun, 19 Mar 2017 18:23:52 +0000 (UTC)
commit a93b47e544ac64b07d6119b7a489b5d436bad6ba
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Mar 19 20:23:20 2017 +0200
Fix crash in search
src/searchnoteswidget.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index a70015a..4c09266 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -1097,7 +1097,7 @@ void SearchNotesWidget::matches_column_data_func(Gtk::CellRenderer * cell,
else if(match_count > 0) {
const char * fmt;
fmt = ngettext("%1 match", "%1 matches", match_count);
- match_str = Glib::ustring(fmt, match_count);
+ match_str = Glib::ustring::compose(fmt, match_count);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]