---
scribo/ChangeLog | 5 +++++
scribo/scribo/io/xml/internal/full_xml_visitor.hh | 11 ++++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 2af84c0..3f17098 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,10 @@
2011-03-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * scribo/io/xml/internal/full_xml_visitor.hh: Do not copy image
+ data.
+
+2011-03-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Make OCR step optional in viewer.
* demo/viewer/Makefile.am: Add new files.
diff --git a/scribo/scribo/io/xml/internal/full_xml_visitor.hh
b/scribo/scribo/io/xml/internal/full_xml_visitor.hh
index 2b09b3a..8576c27 100644
--- a/scribo/scribo/io/xml/internal/full_xml_visitor.hh
+++ b/scribo/scribo/io/xml/internal/full_xml_visitor.hh
@@ -279,8 +279,9 @@ namespace scribo
// FIXME: Try to avoid that!
border::resize(lbl, 0);
- QByteArray lbl64((const char *)lbl.buffer(),
- lbl.nelements() * sizeof(mln_value(L)));
+ QByteArray
+ lbl64 = QByteArray::fromRawData((const char *)lbl.buffer(),
+ lbl.nelements() * sizeof(mln_value(L)));
lbl64 = qCompress(lbl64, COMPRESSION_LEVEL);
lbl64 = lbl64.toBase64();
@@ -299,8 +300,9 @@ namespace scribo
<< "<![CDATA[";
border::resize(seps, 0);
- QByteArray seps64((const char *)seps.buffer(),
- seps.nelements() * sizeof(bool));
+ QByteArray
+ seps64 = QByteArray::fromRawData((const char *)seps.buffer(),
+ seps.nelements() * sizeof(bool));
seps64 = qCompress(seps64, COMPRESSION_LEVEL);
seps64 = seps64.toBase64();
@@ -346,7 +348,6 @@ namespace scribo
break;
}
-
default:
case component::Image:
{
--
1.5.6.5
Show replies by date