gucharmap r1942 - branches/gnome-2-24/gucharmap
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gucharmap r1942 - branches/gnome-2-24/gucharmap
- Date: Wed, 29 Oct 2008 21:30:43 +0000 (UTC)
Author: chpe
Date: Wed Oct 29 21:30:43 2008
New Revision: 1942
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1942&view=rev
Log:
Fix crash when pasting and there's no text on the clipboard.
Modified:
branches/gnome-2-24/gucharmap/gucharmap-chartable.c
Modified: branches/gnome-2-24/gucharmap/gucharmap-chartable.c
==============================================================================
--- branches/gnome-2-24/gucharmap/gucharmap-chartable.c (original)
+++ branches/gnome-2-24/gucharmap/gucharmap-chartable.c Wed Oct 29 21:30:43 2008
@@ -1911,6 +1911,9 @@
g_object_remove_weak_pointer (G_OBJECT (chartable), data);
+ if (!text)
+ return;
+
wc = g_utf8_get_char_validated (text, -1);
if (wc == 0 ||
!gucharmap_unichar_validate (wc)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]