aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2016-11-18 10:42:26 +0100
committerMichael Mann <mmann78@netscape.net>2016-11-19 16:38:10 +0000
commit6926cf0294032e88f267b98000211037882326f9 (patch)
tree17538e571dd2e6de04eb880436e6a7230068c855
parentc27404655650a3648f576663d07394105fd5ef30 (diff)
LBM_UIMflow: Fix range_ratio calculation (CID-1355421)
Port the same calculation from sequence_dialog.cpp. Resolves the Coverity issue and aligns the output just a bit better. Change-Id: Iaa464149630e0fafb5bdff20019440c3fb67bbbd Reviewed-on: https://code.wireshark.org/review/18868 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--ui/qt/lbm_uimflow_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/lbm_uimflow_dialog.cpp b/ui/qt/lbm_uimflow_dialog.cpp
index 1958232d4f..27e07caad0 100644
--- a/ui/qt/lbm_uimflow_dialog.cpp
+++ b/ui/qt/lbm_uimflow_dialog.cpp
@@ -565,7 +565,7 @@ void LBMUIMFlowDialog::resetAxes(bool keep_lower)
left_pos = sp->xAxis2->range().lower;
}
- double range_ratio = sp->xAxis2->axisRect()->width() / m_node_label_width;
+ double range_ratio = sp->xAxis2->axisRect()->width() / m_node_label_width * sp->axisRect()->rangeZoomFactor(Qt::Horizontal);
sp->xAxis2->setRange(left_pos, range_ratio + left_pos);
range_ratio = sp->yAxis->axisRect()->height() / (m_one_em * 1.5);