Loading isis/src/qisis/objs/Directory/ImportShapesWorkOrder.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -318,6 +318,11 @@ namespace Isis { projectShape->relocateDnData(FileName(destination).name()); } // Set new ecub to readOnly. When closing cube, the labels were being re-written because // the cube was read/write. This caused a segfault when imported large number of images // because of a label template file being opened too many times. projectShape->reopen(); delete input; result = projectShape; Loading isis/src/qisis/objs/Directory/ImportShapesWorkOrder.h +4 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,10 @@ namespace Isis { * @history 2017-11-02 Tyler Wilson - Added a null pointer check on the ProjectItem *item * pointer in isExecutable to prevent potential seg faults. * References #4492. * @history 2018-04-19 Tracie Sucharski - Fixed bug when importing shapes without DN data. Ecub * labels were not complete due to a resulting ecub not being closed * properly in thread. The resulting ecub needs to be re-opened as * readOnly to prevent this problem. Fixes #5274. */ class ImportShapesWorkOrder : public WorkOrder { Q_OBJECT Loading Loading
isis/src/qisis/objs/Directory/ImportShapesWorkOrder.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -318,6 +318,11 @@ namespace Isis { projectShape->relocateDnData(FileName(destination).name()); } // Set new ecub to readOnly. When closing cube, the labels were being re-written because // the cube was read/write. This caused a segfault when imported large number of images // because of a label template file being opened too many times. projectShape->reopen(); delete input; result = projectShape; Loading
isis/src/qisis/objs/Directory/ImportShapesWorkOrder.h +4 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,10 @@ namespace Isis { * @history 2017-11-02 Tyler Wilson - Added a null pointer check on the ProjectItem *item * pointer in isExecutable to prevent potential seg faults. * References #4492. * @history 2018-04-19 Tracie Sucharski - Fixed bug when importing shapes without DN data. Ecub * labels were not complete due to a resulting ecub not being closed * properly in thread. The resulting ecub needs to be re-opened as * readOnly to prevent this problem. Fixes #5274. */ class ImportShapesWorkOrder : public WorkOrder { Q_OBJECT Loading