--- src/lib/VSDParser.cpp +++ src/lib/VSDParser.cpp @@ -1104,7 +1104,11 @@ input->seek(1, librevenge::RVNG_SEEK_CUR); double scale = readDouble(input); input->seek(1, librevenge::RVNG_SEEK_CUR); - scale /= readDouble(input); + double scaleDenom = readDouble(input); + if (scaleDenom != 0) + { + scale /= scaleDenom; + } if (m_isStencilStarted && m_currentStencil) {