Skip to content

inset: Fix -Dxmin/xmax/ymin/ymax not setting the inset size - #9228

Open
Esteban82 wants to merge 1 commit into
masterfrom
fix-9224
Open

Esteban82 wants to merge 1 commit into
masterfrom
fix-9224

Conversation

@Esteban82

Copy link
Copy Markdown
Member

This fixes #9224. Also adds a simple test, test/inset/inset_size.sh, that doesn't require a new baseline.

Now I got this figure (with the script post it in #9224).

inset-

Reviewed with Claude Opus 5.5.

gmt_draw_map_inset() computes the inset's actual size but never saves it
back to the caller, so a later ? placeholder inside the inset (e.g.
-JA20/20/?) resolves to 0i and fails, with the error cascading to every
command after it, even outside the inset. Also fixes +w<distance unit>
silently storing raw units instead of inches, and infinite map scale in
any later command that reuses the inset's -J.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Esteban82 Esteban82 added the add-changelog Add PR to the changelog label Sep 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inset: Specifing the region using -Dxmin/xmax/ymin/ymax doesn't work

1 participant