Skip to content

abstract: AllowsResolution now checks ResolutionRange - #127

Open
ArmxG wants to merge 1 commit into
OpenPrinting:masterfrom
ArmxG:fix-resolution-range-clean
Open

ArmxG wants to merge 1 commit into
OpenPrinting:masterfrom
ArmxG:fix-resolution-range-clean

Conversation

@ArmxG

@ArmxG ArmxG commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

AllowsResolution() had a FIXME comment and returned false without checking the ResolutionRange field. Profiles that use only a resolution range (no discrete resolutions) would reject every resolution.

Fix: check that the requested resolution falls within [Min, Max] and is aligned to Step (when Step is non-zero) for both X and Y axes.

Fixes #122

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

abstract: AllowsResolution ignores ResolutionRange (range-only profiles reject every resolution)

1 participant