[gnumeric] xlsx: correctly read object position.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: correctly read object position.
- Date: Sat, 19 Apr 2014 23:42:53 +0000 (UTC)
commit 00842c03a9186bd2728507b433ba0ce5dc9658f2
Author: Morten Welinder <terra gnome org>
Date: Sat Apr 19 19:41:59 2014 -0400
xlsx: correctly read object position.
We step this loop with +=2, so don't expect odd numbers.
plugins/excel/ChangeLog | 5 +++++
plugins/excel/xlsx-read-drawing.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 84879fb..d848394 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-19 Morten Welinder <terra gnome org>
+
+ * xlsx-read-drawing.c (xlsx_drawing_twoCellAnchor_end): Fix
+ reading object positions.
+
2014-04-18 Andreas J. Guelzow <aguelzow pyrshep ca>
* xlsx-write-drawing.c (xlsx_pts_to_emu): new
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 59c230a..84ff812 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -2118,7 +2118,7 @@ xlsx_drawing_twoCellAnchor_end (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
for (i = 0; i < 8; i+=2) {
ColRowInfo const *cri;
- if (i & 1) {
+ if (i & 2) {
cri = sheet_row_get (state->sheet, state->drawing_pos[i]);
size = cri? cri->size_pts: sheet_row_get_default_size_pts
(state->sheet);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]