aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorruengeler <ruengeler@wireshark.org>2018-04-19 10:21:27 +0200
committerPeter Wu <peter@lekensteyn.nl>2018-04-20 08:23:05 +0000
commitac7e609b9f87d2f53b7dc77574ecd4c269f6d384 (patch)
tree79c2b3242a7dacfae35fcd4686ea40f3e881a26f /ui/qt
parente96c3d008e3909a60de61e182e920c0939d1e00a (diff)
SCTP: INIT collision
Change-Id: I283ce92048af39ff4cf54e5e401e714bf6ec308b Reviewed-on: https://code.wireshark.org/review/27023 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/sctp_graph_dialog.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/ui/qt/sctp_graph_dialog.cpp b/ui/qt/sctp_graph_dialog.cpp
index a5afe34738..840bf04c3d 100644
--- a/ui/qt/sctp_graph_dialog.cpp
+++ b/ui/qt/sctp_graph_dialog.cpp
@@ -304,7 +304,6 @@ void SCTPGraphDialog::drawTSNGraph()
void SCTPGraphDialog::drawGraph(int which)
{
guint32 maxTSN, minTSN;
- gint64 minBound;
gIsSackChunkPresent = false;
gIsNRSackChunkPresent = false;
@@ -339,12 +338,7 @@ void SCTPGraphDialog::drawGraph(int which)
connect(ui->sctpPlot, SIGNAL(plottableClick(QCPAbstractPlottable*,QMouseEvent*)), this, SLOT(graphClicked(QCPAbstractPlottable*, QMouseEvent*)));
// set axes ranges, so we see all data:
QCPRange myXRange(selected_assoc->min_secs, (selected_assoc->max_secs+1));
- if (maxTSN - minTSN < 5) {
- minBound = 0;
- } else {
- minBound = minTSN;
- }
- QCPRange myYRange(minBound, maxTSN);
+ QCPRange myYRange(minTSN, maxTSN);
ui->sctpPlot->xAxis->setRange(myXRange);
ui->sctpPlot->yAxis->setRange(myYRange);
ui->sctpPlot->replot();