From b5a5f3af30eb1133d03d20f05949961478efc28d Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Sun, 9 Aug 2015 22:33:10 -0400 Subject: [PATCH] Fix to allow DBC derived graphs to properly be signed if the signal was signed. --- newgraphdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newgraphdialog.cpp b/newgraphdialog.cpp index ac1b21c..7242187 100644 --- a/newgraphdialog.cpp +++ b/newgraphdialog.cpp @@ -145,6 +145,8 @@ void NewGraphDialog::fillFormFromSignal(int idx) params.scale = sig->factor; params.stride = 1; params.mask = (1 << (sig->signalSize)) - 1; + if (sig->valType == SIGNED_INT) params.isSigned = true; + else params.isSigned = false; params.color = ui->colorSwatch->palette().color(QPalette::Button); if (sig->intelByteOrder) {