[dia/dia-0-97] Bug 614089 - crashes with <default-width> in the shape file
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/dia-0-97] Bug 614089 - crashes with <default-width> in the shape file
- Date: Fri, 7 Jan 2011 12:18:47 +0000 (UTC)
commit 1d6cf46ac6609d4374272745dae2cc92d16a142f
Author: Hans Breuer <hans breuer org>
Date: Tue Jul 27 17:04:45 2010 +0200
Bug 614089 - crashes with <default-width> in the shape file
Searching of the unit was done with the wrong index and thus the result did depend on the number of connection points.
objects/custom/shape_info.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/objects/custom/shape_info.c b/objects/custom/shape_info.c
index c851081..8f7236f 100644
--- a/objects/custom/shape_info.c
+++ b/objects/custom/shape_info.c
@@ -816,7 +816,7 @@ load_shape_info(const gchar *filename, ShapeInfo *preload)
val = g_ascii_strtod(tmp, NULL);
- for (j = 0, ud = units[i]; ud.name; ud = units[++j]) {
+ for (ud = units[j]; ud.name; ud = units[++j]) {
unit_ssize = strlen(ud.unit);
if (ssize > unit_ssize && !strcmp(tmp+(ssize-unit_ssize), ud.unit)) {
val *= (ud.factor / 28.346457);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]