Skip to content

NSParagraphStyle: setTabStops: keeps the given order#479

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nsparagraphstyle-tabstops-order
Open

NSParagraphStyle: setTabStops: keeps the given order#479
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nsparagraphstyle-tabstops-order

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

-[NSMutableParagraphStyle setTabStops:] sorted the given stops by
location. OS X keeps them in the order supplied (it is the caller's
responsibility to order them). Store the stops as given. -addTabStop:
still inserts a single stop in sorted position, which also matches OS X.
Verified on a macOS runner: setTabStops with (300, 100, 200) reports that
same order.

Adds a test for the preserved order.

@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 13:54
@DTW-Thalion DTW-Thalion force-pushed the fix/nsparagraphstyle-tabstops-order branch 4 times, most recently from 5671661 to 14c9b37 Compare July 12, 2026 20:47
setTabStops: sorted the stops by location; OS X keeps them in the order
given.  Store them as given.  addTabStop: still inserts a single stop in
sorted position.
@DTW-Thalion DTW-Thalion force-pushed the fix/nsparagraphstyle-tabstops-order branch from 14c9b37 to ca1b3d2 Compare July 13, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant