summaryrefslogtreecommitdiff
path: root/src/lib/VSD6Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/VSD6Parser.cpp')
-rw-r--r--src/lib/VSD6Parser.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/VSD6Parser.cpp b/src/lib/VSD6Parser.cpp
index 0a4f83e..335872c 100644
--- a/src/lib/VSD6Parser.cpp
+++ b/src/lib/VSD6Parser.cpp
@@ -269,16 +269,16 @@ void libvisio::VSD6Parser::readTextField(WPXInputStream *input)
unsigned char tmpCode = readU8(input);
if (tmpCode == 0xe8)
{
- int nameId = (int)readU32(input);
+ int nameId = readS32(input);
input->seek(6, WPX_SEEK_CUR);
- int formatStringId = (int)readU32(input);
+ int formatStringId = readS32(input);
m_shape.m_fields.addTextField(m_header.id, m_header.level, nameId, formatStringId);
}
else
{
double numericValue = readDouble(input);
input->seek(2, WPX_SEEK_CUR);
- int formatStringId = (int)readU32(input);
+ int formatStringId = readS32(input);
unsigned blockIdx = 0;
unsigned length = 0;
@@ -331,5 +331,4 @@ void libvisio::VSD6Parser::readTextField(WPXInputStream *input)
}
}
-
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */