Code

Fix image transform when there is no rotate or scale
[inkscape.git] / src / extension / dependency.cpp
index 4ccf103f60553c2f5a8f64042c4787a944eac57f..5a8046613dd775198543f8e43c738c8fa59f4afc 100644 (file)
@@ -8,6 +8,10 @@
  */
 
 
+extern "C" {           // glib-2.4 needs this
+#include <libintl.h>
+}
+
 #include <glibmm/i18n.h>
 
 #include "config.h"
@@ -235,15 +239,17 @@ Dependency::check (void) const
 std::ostream &
 operator<< (std::ostream &out_file, const Dependency & in_dep)
 {
-    out_file << _("Dependency::") << std::endl;
-    out_file << _("  type: ") << _(in_dep._type_str[in_dep._type]) << std::endl;
-    out_file << _("  location: ") << _(in_dep._location_str[in_dep._location]) << std::endl;
-    out_file << _("  string: ") << in_dep._string << std::endl;
+    out_file << _("Dependency::") << '\n';
+    out_file << _("  type: ") << _(in_dep._type_str[in_dep._type]) << '\n';
+    out_file << _("  location: ") << _(in_dep._location_str[in_dep._location]) << '\n';
+    out_file << _("  string: ") << in_dep._string << '\n';
 
     if (in_dep._description != NULL) {
-        out_file << _("  description: ") << _(in_dep._description) << std::endl;
+        out_file << _("  description: ") << _(in_dep._description) << '\n';
     }
 
+    out_file << std::flush;
+
     return out_file;
 }