[dia] 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] Bug 614089 - crashes with <default-width> in the shape file
- Date: Tue, 27 Jul 2010 15:17:03 +0000 (UTC)
commit 43c5c0ca3fa00a10bf72ab585f4f3f1758d14c52
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 b71683d..6d4c453 100644
--- a/objects/custom/shape_info.c
+++ b/objects/custom/shape_info.c
@@ -828,7 +828,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]