Skip to content

Commit 7c94ced

Browse files
committed
Input: Change the order of calls to primary value
InputValue::setValueBlockId() sets the block to nullptr, so ID must be set before the block.
1 parent d54ccbc commit 7c94ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scratch/input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ void Input::setValueBlock(std::shared_ptr<Block> block)
9191
/*! Sets the ID of the value block. \see setValueBlock() */
9292
void Input::setValueBlockId(const std::string &id)
9393
{
94-
impl->primaryValue.setValueBlockId(id);
9594
impl->primaryValue.setValueBlock(nullptr);
95+
impl->primaryValue.setValueBlockId(id);
9696
}

0 commit comments

Comments
 (0)