[dia] More PyErr_Warn(), less g_warning()
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] More PyErr_Warn(), less g_warning()
- Date: Fri, 14 Feb 2014 19:19:14 +0000 (UTC)
commit 79727fc8475b30bd5bd9b93d88224cef754c4dda
Author: Hans Breuer <hans breuer org>
Date: Fri Feb 14 19:57:42 2014 +0100
More PyErr_Warn(), less g_warning()
plug-ins/python/pydia-property.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/python/pydia-property.c b/plug-ins/python/pydia-property.c
index 01fa200..642c831 100644
--- a/plug-ins/python/pydia-property.c
+++ b/plug-ins/python/pydia-property.c
@@ -526,7 +526,7 @@ PyDia_set_BezPointArray(Property *prop, PyObject *val)
}
/* rather than crashing Dia with too few point handle it here */
if (numpts < 2) {
- g_warning ("Too few BezPoints!");
+ PyErr_Warn (PyExc_RuntimeWarning, "Too few BezPoints!");
return -1;
}
/* only count valid points */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]