diff --git a/src/GDTFManager.cpp b/src/GDTFManager.cpp index 1431fccf..96fc464c 100644 --- a/src/GDTFManager.cpp +++ b/src/GDTFManager.cpp @@ -1953,7 +1953,7 @@ EGdtfModel_PrimitiveType GdtfModel::GetPrimitiveType() const void GdtfModel::GetBuffer3DS(void** bufferToCopy, size_t& length) { - if(fBuffer3DS) + if(!fBuffer3DS) { return; } @@ -1969,7 +1969,7 @@ void GdtfModel::GetBuffer3DS(void** bufferToCopy, size_t& length) void GdtfModel::GetBufferSVG(void** bufferToCopy, size_t& length) { - if(fBufferSVG) + if(!fBufferSVG) { return; }