Code::Blocks Forums

User forums => Help => Topic started by: Amel on April 25, 2020, 03:04:14 pm

Title: Assertion when font changed
Post by: Amel on April 25, 2020, 03:04:14 pm
An assertion alart saying "Assertion failed: numWeight>0" pops up when I try to change font by Setting-editor.

It happens on 20.03 version and the most recent nightly build (I tried both, uninstalled and install several times).

But when I install 17.12 version again, such assertion does not happen.

I searched about this issue and found a post.
http://forums.codeblocks.org/index.php?topic=23567.0

But I cannot understand how he solved this problem.

I want to code with Consolas, not a system font...

Please help me. :'(
Title: Re: Assertion when font changed
Post by: ollydbg on May 03, 2020, 01:41:50 am
This is a bug inside the wxWidgets 3.1.3 library.
This bug is fixed in wx trunk, see here: #18590 (Font description string Get and Set bug in wx3.1.3 on Windows 32bit build) – wxWidgets (https://trac.wxwidgets.org/ticket/18590). You can patch the wxWidgets 3.1.3's source and rebuild the wx library.