Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Remove assert from matrix widget that flooded application log #976

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

cpinter
Copy link
Member

@cpinter cpinter commented Jun 10, 2021

Each time a ctkMatrixWidget was shown, a series of errors about width and height mismatch flooded the log, making it harder to read. Since these mismatches do not seem to have any consequence on function, it seems to be more advantageous to remove the asserts.

Each time a ctkMatrixWidget was shown, a series of errors about width and height mismatch flooded the log, making it harder to read. Since these mismatches do not seem to have any consequence on function, it seems to be more advantageous to remove the asserts.
@cpinter
Copy link
Member Author

cpinter commented Jun 10, 2021

A block of warnings like this appeared on each first show of matrix widget:

[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->columnWidth(j) == newWidth` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  242
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->columnWidth(j) == newWidth` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  242
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->columnWidth(j) == newWidth` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  242
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->columnWidth(j) == newWidth` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  242
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253
[WARNING][Qt] 09.06.2021 14:53:51 [] (unknown:0) - Assertion `this->Table->rowHeight(i) == newHeight` failed in  /home/csaba/Devel/cR/CTK/Libs/Widgets/ctkMatrixWidget.cpp  line  253

Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@pieper pieper merged commit e99f549 into commontk:master Jun 10, 2021
@cpinter
Copy link
Member Author

cpinter commented Jun 10, 2021

Thanks @pieper !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants