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

d.legend.vect: Initialize title size #3095

Merged
merged 1 commit into from
Nov 20, 2023

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
19 checks passed
@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