Skip to content

Comments

d.legend.vect: Initialize title size#3095

Merged
wenzeslaus merged 1 commit intoOSGeo:mainfrom
wenzeslaus:d_legend-bg-fix
Nov 20, 2023
Merged

d.legend.vect: Initialize title size#3095
wenzeslaus merged 1 commit intoOSGeo:mainfrom
wenzeslaus:d_legend-bg-fix

Conversation

@wenzeslaus
Copy link
Member

@wenzeslaus wenzeslaus commented Jul 19, 2023

Later test (line 270) uses title width to compute background size regardless of title presence, but original code initialized title_w only when title was set.

This fixes occasional extra wide legend background rectangle.

Identified by valgrind as: Conditional jump or move depends on uninitialized value(s).

Later test (line 270) uses title width to compute background size regardless of title presence, but original code initialized title_w only when title was set.

This fixes occasional extra wide legend background rectangle.

Identified by valgrind as: Conditional jump or move depends on uninitialised value(s).
@neteler neteler added this to the 8.4.0 milestone Aug 16, 2023
@landam landam added the vector Related to vector data processing label Nov 19, 2023
@wenzeslaus wenzeslaus merged commit 6a4b46d into OSGeo:main Nov 20, 2023
@wenzeslaus wenzeslaus deleted the d_legend-bg-fix branch November 20, 2023 19:12
HuidaeCho pushed a commit to HuidaeCho/grass that referenced this pull request Jan 9, 2024
Later test (line 270) uses title width to compute background size regardless of title presence, but original code initialized title_w only when title was set.

This fixes occasional extra wide legend background rectangle.

Identified by valgrind as: Conditional jump or move depends on uninitialized value(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vector Related to vector data processing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants