Skip to content

Commit 91da993

Browse files
committed
InputValue: Determine ID from value pointer
1 parent 6c004d0 commit 91da993

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scratch/inputvalue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ void InputValue::setValuePtr(const std::shared_ptr<Entity> &newValuePtr)
116116
setType(Type::List);
117117
else {
118118
impl->valuePtr = nullptr;
119+
impl->valueId = "";
119120
return;
120121
}
121122

122123
impl->valuePtr = newValuePtr;
124+
impl->valueId = newValuePtr->id();
123125
}
124126

125127
/*! Returns the ID of the value. */

0 commit comments

Comments
 (0)