Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Miguel Gimenez on August 12, 2024, 11:46:09 am

Title: Guard needed in r13541
Post by: Miguel Gimenez on August 12, 2024, 11:46:09 am
Revision r13541 (https://sourceforge.net/p/codeblocks/code/13541/) added some wx3.2 font styles that are not present in wx3.0, but we still support 3.0 (at least on Linux). These values must be guarded with wxCHECK_VERSION(3, 1, 2) in wxssimplefonteditordlg.cpp:

Code
wxFONTWEIGHT_THIN
wxFONTWEIGHT_EXTRALIGHT
wxFONTWEIGHT_MEDIUM
wxFONTWEIGHT_SEMIBOLD
wxFONTWEIGHT_EXTRABOLD
wxFONTWEIGHT_HEAVY
wxFONTWEIGHT_EXTRAHEAVY
wxFONTWEIGHT_INVALID
Title: Re: Guard needed in r13541
Post by: ollydbg on August 12, 2024, 12:54:39 pm
Maybe Morten will do this?  :)
Title: Re: Guard needed in r13541
Post by: Miguel Gimenez on August 12, 2024, 02:19:17 pm
Proposed patch attached
Title: Re: Guard needed in r13541
Post by: Wkerry on August 13, 2024, 11:13:18 am
Is there not a CI build that runs for Windows and Linux on any merge like bigger projects do? This would have detected this issue.

Another thing with big dev teams there is peer revies of code changes before they are merged into the trunk. Does this occur with CB? This may have picked it up depending on the reviewers skills.
Title: Re: Guard needed in r13541
Post by: Miguel Gimenez on August 13, 2024, 12:54:48 pm
Sourceforge does not have these utilities, or at least I do not know about them. Peer reviewing is done sometimes for complex changes.
Title: Re: Guard needed in r13541
Post by: Miguel Gimenez on August 13, 2024, 03:53:30 pm
Patch applied in r13542 (https://sourceforge.net/p/codeblocks/code/13542/).