summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/DisplayPlot.cc
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-09-07 12:57:03 -0700
committerJosh Blum <josh@joshknows.com>2012-09-07 12:57:03 -0700
commit1def9c5e349f22560d6ff84ca4baf85a0019555c (patch)
treef1147b63ed37e01de6ae4ffe195fee5e73885dd9 /gr-qtgui/lib/DisplayPlot.cc
parentee3d98e85a2886f20457c1842a4d2dee9c89c42a (diff)
qtgui: fix log10 ambiguous overload in DisplayPlot
Diffstat (limited to 'gr-qtgui/lib/DisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/DisplayPlot.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/lib/DisplayPlot.cc b/gr-qtgui/lib/DisplayPlot.cc
index 577b4f1483..1199b6456e 100644
--- a/gr-qtgui/lib/DisplayPlot.cc
+++ b/gr-qtgui/lib/DisplayPlot.cc
@@ -150,11 +150,11 @@ DisplayPlot::setLineWidth(int which, int width)
// Scale the marker size proportionally
#if QWT_VERSION < 0x060000
QwtSymbol sym = (QwtSymbol)_plot_curve[which]->symbol();
- sym.setSize(7+10*log10(width), 7+10*log10(width));
+ sym.setSize(7+10*log10(1.0*width), 7+10*log10(1.0*width));
_plot_curve[which]->setSymbol(sym);
#else
QwtSymbol *sym = (QwtSymbol*)_plot_curve[which]->symbol();
- sym->setSize(7+10*log10(width), 7+10*log10(width));
+ sym->setSize(7+10*log10(1.0*width), 7+10*log10(1.0*width));
_plot_curve[which]->setSymbol(sym);
#endif
}