Skip to content

v0.2.54..v0.2.55 changeset OsmPbfWriter.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/OsmPbfWriter.cpp b/hoot-core/src/main/cpp/hoot/core/io/OsmPbfWriter.cpp
index 09d2b28..6b9d78d 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/OsmPbfWriter.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/OsmPbfWriter.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #include "OsmPbfWriter.h"
@@ -238,7 +238,8 @@ void OsmPbfWriter::_open(const QString& url)
 void OsmPbfWriter::open(const QString& url)
 {
   _open(url);
-  initializePartial();
+  //  OsmPbfWriter::open() shouldn't call OsmPbfWriter::initializePartial()
+  //  or it will cause duplicate headers
 }
 
 void OsmPbfWriter::close()
Clone this wiki locally