Skip to content

Commit 41ccc1c

Browse files
Update Framework/API/inc/MantidAPI/WorkspaceProperty.tcc
Co-authored-by: Rob Applin <40830825+robertapplin@users.noreply.github.com>
1 parent 75d90fe commit 41ccc1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Framework/API/inc/MantidAPI/WorkspaceProperty.tcc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ template <typename TYPE> const Kernel::PropertyHistory WorkspaceProperty<TYPE>::
306306

307307
if ((wsName.empty() || this->hasTemporaryValue()) && this->operator()()) {
308308
const auto pvName = Kernel::PropertyWithValue<std::shared_ptr<TYPE>>::m_value->getPythonVariableName();
309-
if (!pvName.empty()) {
310-
pythonVariable = true;
309+
pythonVariable = !pvName.empty();
310+
if (pythonVariable) {
311311
wsName = pvName;
312312
} else {
313313
// give the property a temporary name in the history

0 commit comments

Comments
 (0)