diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-11-30 14:42:42 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-12-01 05:17:59 +0000 |
commit | 79f7edba15dc4c637c7f19c0770c2ba2721d765a (patch) | |
tree | c76031a09652c306343fd417a6a7d1d80055d1fb /ui/qt/rtp_player_dialog.cpp | |
parent | e3fc691368af60bbbaec9e038ee6a6d3b7707955 (diff) |
Qt: Don't expose ColorUtils::graph_colors_.
Make graph_colors_ private and accessible via getters. Blind attempt at
fixing bug 11833.
Bug: 11833
Change-Id: I03b7e90c686374d2d0f046f7e5fe87e43939dc82
Reviewed-on: https://code.wireshark.org/review/12318
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/rtp_player_dialog.cpp')
-rw-r--r-- | ui/qt/rtp_player_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/rtp_player_dialog.cpp b/ui/qt/rtp_player_dialog.cpp index 9b26c1fb5a..11ccdb6cbd 100644 --- a/ui/qt/rtp_player_dialog.cpp +++ b/ui/qt/rtp_player_dialog.cpp @@ -356,7 +356,7 @@ void RtpPlayerDialog::addRtpStream(struct _rtp_stream_info *rtp_stream) if (!audio_stream) { audio_stream = new RtpAudioStream(this, rtp_stream); - audio_stream->setColor(ColorUtils::graph_colors_[tli_count % ColorUtils::graph_colors_.length()]); + audio_stream->setColor(ColorUtils::graphColor(tli_count)); QTreeWidgetItem *ti = new QTreeWidgetItem(ui->streamTreeWidget); ti->setText(src_addr_col_, address_to_qstring(&rtp_stream->src_addr)); |