Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3b5a4fa

Browse files
brianosmanSkia Commit-Bot
authored and
Skia Commit-Bot
committed
Use stable sort for Viewer's help screen
Fixes flickering help text Change-Id: I61159e6946125e9e2ce7be3f8f8f6103473855be Reviewed-on: https://skia-review.googlesource.com/c/skia/+/302266 Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
1 parent a5b9860 commit 3b5a4fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/sk_app/CommandSet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ void CommandSet::drawHelp(SkCanvas* canvas) {
9999
}
100100

101101
// Sort commands for current mode:
102-
SkTQSort(fCommands.begin(), fCommands.end() - 1,
103-
kAlphabetical_HelpMode == fHelpMode ? compareCommandKey : compareCommandGroup);
102+
std::stable_sort(fCommands.begin(), fCommands.end(),
103+
kAlphabetical_HelpMode == fHelpMode ? compareCommandKey : compareCommandGroup);
104104

105105
SkFont font;
106106
font.setSize(16);

0 commit comments

Comments
 (0)