1 From 2d6253c7a692a3d92785dd990fce7256ea05e794 Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Fri, 7 Apr 2017 19:28:55 +0200
4 Subject: [PATCH] ofz#1029 use correct loop index
6 To be honest, I think this would be clearer as two separate reads to two
9 src/lib/StarWriterStruct.cxx | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 diff --git a/src/lib/StarWriterStruct.cxx b/src/lib/StarWriterStruct.cxx
13 index 5893302..d1ad366 100644
14 --- a/src/lib/StarWriterStruct.cxx
15 +++ b/src/lib/StarWriterStruct.cxx
16 @@ -327,7 +327,7 @@ bool DatabaseName::read(StarZone &zone)
18 data.m_name=libstoff::getString(text);
20 - for (int j=0; j<2; ++j) positions[i]=int(input->readULong(4));
21 + for (int j=0; j<2; ++j) positions[j]=int(input->readULong(4));
22 data.m_selection=STOFFVec2i(positions[0],positions[1]);
23 m_dataList.push_back(data);