---
scribo/ChangeLog | 4 ++++
scribo/src/content_in_doc.cc | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 669d782..afb1147 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,7 @@
+2012-09-26 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * scribo/src/content_in_doc.cc: Add more debug images.
+
2012-09-14 Guillaume Lazzara <z(a)lrde.epita.fr>
* scribo/debug/logger.hh: Fix attributes initialization order.
diff --git a/scribo/src/content_in_doc.cc b/scribo/src/content_in_doc.cc
index 4d3c50e..0228f30 100644
--- a/scribo/src/content_in_doc.cc
+++ b/scribo/src/content_in_doc.cc
@@ -46,6 +46,7 @@
#include <scribo/preprocessing/crop.hh>
#include <scribo/io/xml/save.hh>
+#include <scribo/io/img/save.hh>
#include <scribo/debug/option_parser.hh>
@@ -181,5 +182,8 @@ int main(int argc, char* argv[])
else if (options.opt_value("xml-format") == "full")
scribo::io::xml::save(doc, options.arg("out.xml"), scribo::io::xml::Full);
+ if (scribo::debug::logger().is_enabled())
+ scribo::io::img::save(doc, mln::debug::filename("regions.png"),
scribo::io::img::DebugWoImage);
+
trace::exiting("main");
}
--
1.7.2.5
Show replies by date