summarylogtreecommitdiffstats
path: root/fix-build.patch
diff options
context:
space:
mode:
authorBalló György2018-02-08 02:27:48 +0000
committerBalló György2018-02-08 02:29:42 +0000
commitd1ba8058fc17789f6da45c7dd1340c1e8c88a1c2 (patch)
treeabd0cdfb0b639557e5cb7d77166d19f9c8ce4302 /fix-build.patch
parentb38fcb60b3fecd6b1d856ffac3ae682783e1daa2 (diff)
downloadaur-lostirc.tar.gz
Fix build
Diffstat (limited to 'fix-build.patch')
-rw-r--r--fix-build.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/fix-build.patch b/fix-build.patch
new file mode 100644
index 000000000000..2348321a329e
--- /dev/null
+++ b/fix-build.patch
@@ -0,0 +1,16 @@
+--- lostirc-0.4.6.orig/src/gtkmm/TextWidget.cpp
++++ lostirc-0.4.6/src/gtkmm/TextWidget.cpp
+@@ -210,11 +210,11 @@
+ std::vector< Glib::RefPtr<Gtk::TextTag> > tags;
+
+ Glib::RefPtr<Gtk::TextTag> fg = buffer->get_tag_table()->lookup(Glib::ustring("f")+crop(tp.fgnumber));
+- if (fg == 0)
++ if (!fg)
+ fg = buffer->get_tag_table()->lookup("f0");
+
+ Glib::RefPtr<Gtk::TextTag> bg = buffer->get_tag_table()->lookup(Glib::ustring("b")+crop(tp.bgnumber));
+- if (bg == 0)
++ if (!bg)
+ bg = buffer->get_tag_table()->lookup("b0");
+
+ tags.push_back(fg);