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

Make Widget::set_size() virtual #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mode777
Copy link

@mode777 mode777 commented Feb 4, 2024

Disclaimer: I know very little about C++. That said: set_size() is overridden in Screen but set_size() was not marked as virtual leading to the overridden method not being called correctly. Adding the virtual keyword fixes the issue for me.

Disclaimer: I know very little about C++. That said: set_size() is overridden in Screen but set_size() was not marked as virtual leading to the overridden method not being called correctly. Adding the virtual keyword fixes the issue for me.
@fwsGonzo
Copy link

fwsGonzo commented Mar 9, 2024

This can be closed. Screens set_size() calls Widget::set_size() directly.

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

Successfully merging this pull request may close these issues.

2 participants