Skip to content
Permalink
Browse files

Fix wipe issue when saving pclx as pcl

Not sure why I made those variables sA and sB to start with, but
I think they were causing it to compare references rather than
values.
  • Loading branch information...
scribblemaniac committed Apr 12, 2019
1 parent 5aa4d9c commit b293c28cd0f27896c8ed09545fc1804d86b637e9
Showing with 1 addition and 2 deletions.
  1. +1 −2 core_lib/src/structure/layerbitmap.cpp
@@ -114,8 +114,7 @@ Status LayerBitmap::presave(const QString& sDataFolder)
// Move to temporary locations first to avoid overwritting anything we shouldn't be
// Ex: Frame A moves from 1 -> 2, Frame B moves from 2 -> 3. Make sure A does not overwrite B
QString tmpName = QString::asprintf("t_%03d.%03d.png", id(), b->pos());
QDir sA, sB;
if ((sA=QFileInfo(b->fileName()).dir()) != (sB=dataFolder)) {
if (QFileInfo(b->fileName()).dir() != dataFolder) {
// Copy instead of move if the data folder itself has changed
QFile::copy(b->fileName(), tmpName);
}

0 comments on commit b293c28

Please sign in to comment.
You can’t perform that action at this time.