[gimp/soc-2011-gimpunitentry] GimpUnitEntry: Do not accept multi-dimensional terms
- From: Enrico Schröder <eschroeder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-gimpunitentry] GimpUnitEntry: Do not accept multi-dimensional terms
- Date: Thu, 9 Jun 2011 11:01:03 +0000 (UTC)
commit 1ba46c59e91da65445d86af4f5576206fa90db3f
Author: Enrico SchroÌ?der <enni schroeder gmail com>
Date: Tue Jun 7 22:57:29 2011 +0200
GimpUnitEntry: Do not accept multi-dimensional terms
Terms in the form "10 px * 2 in" do not make sense and thus are not accepted
libgimpwidgets/gimpunitparser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimpunitparser.c b/libgimpwidgets/gimpunitparser.c
index 1c93718..990f16f 100644
--- a/libgimpwidgets/gimpunitparser.c
+++ b/libgimpwidgets/gimpunitparser.c
@@ -67,7 +67,7 @@ gimp_unit_parser_parse (const char *str, GimpUnitParserResult *result)
&errorpos,
&error);
- if (error || errorpos)
+ if (error || errorpos || eevlResult.dimension > 1)
{
DEBUG (("gimpeevl parsing error \n"));
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]