Skip to content

Commit

Permalink
[bugfix] fix mutable loop error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Nov 15, 2023
1 parent 11ebe32 commit a313979
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GraphCtrl/GraphElement/GElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ GElementRef GElement::operator&(GElementPtr element) {
}


GElement& GElement::operator*(CSize loop) {
GElement& GElement::operator*(CSize loop) noexcept {
try {
this->setLoop(loop);
} catch (const CException& ex) {
Expand Down
3 changes: 2 additions & 1 deletion src/GraphCtrl/GraphElement/GElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,13 @@ class GElement : public GElementObject,
* (*a)-->b&c;
* (*b)-->d;
* (*c)-->d;
* (*b)*2;
* @return
*/
GElement& operator--(int) noexcept;
GElement& operator>(GElement* element);
GElement& operator&(GElement* element);
GElement& operator*(CSize loop);
GElement& operator*(CSize loop) noexcept;

protected:
/**
Expand Down
1 change: 1 addition & 0 deletions src/GraphCtrl/GraphElement/GGroup/GMutable/GMutable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ CVoid GMutable::setup() {
for (auto* element : group_elements_arr_) {
element->run_before_.clear();
element->dependence_.clear();
element->setLoop(1);
element->setVisible(false);
}
}
Expand Down

0 comments on commit a313979

Please sign in to comment.