Skip to content

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 <[email protected]> Commit-Queue: John Stiles <[email protected]> Auto-Submit: Brian Osman <[email protected]> Reviewed-by: John Stiles <[email protected]>
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

+2-2
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)