[Libreoffice-commits] libvisio.git: 2 commits - src/conv src/lib
Fridrich Å trba
fridrich.strba at bluewin.ch
Tue Dec 3 01:23:58 PST 2013
src/conv/raw/vsd2raw.cpp | 1 -
src/lib/VSDPages.cpp | 6 ++++++
2 files changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 6a4e4bae12214d9a913b7b7fe134919a6b7882bf
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Tue Dec 3 10:22:31 2013 +0100
Add startDocument and endDocument calls
Change-Id: I964e74614e18775e6383e385024331e03e8cf442
diff --git a/src/lib/VSDPages.cpp b/src/lib/VSDPages.cpp
index 5043814..1cb9787 100644
--- a/src/lib/VSDPages.cpp
+++ b/src/lib/VSDPages.cpp
@@ -93,6 +93,10 @@ void libvisio::VSDPages::draw(librevenge::RVNGDrawingInterface *painter)
{
if (!painter)
return;
+ if (m_pages.empty())
+ return;
+
+ painter->startDocument(librevenge::RVNGPropertyList());
for (unsigned i = 0; i < m_pages.size(); ++i)
{
@@ -118,6 +122,8 @@ void libvisio::VSDPages::draw(librevenge::RVNGDrawingInterface *painter)
_drawWithBackground(painter, iter->second);
painter->endPage();
}
+
+ painter->endDocument();
}
void libvisio::VSDPages::_drawWithBackground(librevenge::RVNGDrawingInterface *painter, const libvisio::VSDPage &page)
commit fd77d1c48c490cb697ccf62d47cbdb28998ce99f
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Tue Dec 3 06:58:22 2013 +0100
No need of this anymore
Change-Id: Ia04b59bd92854123800ba2bf2576919c6d90c907
diff --git a/src/conv/raw/vsd2raw.cpp b/src/conv/raw/vsd2raw.cpp
index 738a863..750ac7e 100644
--- a/src/conv/raw/vsd2raw.cpp
+++ b/src/conv/raw/vsd2raw.cpp
@@ -79,7 +79,6 @@ int main(int argc, char *argv[])
return 1;
}
- (void)printIndentLevel;
librevenge::RVNGRawDrawingGenerator painter(printIndentLevel);
if (!libvisio::VisioDocument::parse(&input, &painter))
{
More information about the Libreoffice-commits
mailing list