blob: ec67b5c9cd4afc09c3b2d066b5fe9a5525dff4ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- src/lib/VSDContentCollector.cpp
+++ src/lib/VSDContentCollector.cpp
@@ -3220,7 +3220,7 @@
}
if (U_SUCCESS(status) && conv)
{
- const char *src = (const char *)&characters[0];
+ const char *src = (const char *)characters.data();
const char *srcLimit = (const char *)src + characters.size();
while (src < srcLimit)
{
@@ -3285,6 +3285,7 @@
_handleLevelChange(level);
librevenge::RVNGString text;
std::vector<unsigned char> tmpData(layerMem.m_data.size());
+ if (!layerMem.m_data.empty())
memcpy(&tmpData[0], layerMem.m_data.getDataBuffer(), layerMem.m_data.size());
appendCharacters(text, tmpData, layerMem.m_format);
|