Mercurial > hg > svgui
comparison layer/SliceLayer.cpp @ 1251:9e1559b08f0d
Fix a couple of compiler warnings
author | Chris Cannam |
---|---|
date | Tue, 28 Feb 2017 14:47:13 +0000 |
parents | 4d0ca1ab4cd0 |
children | bbdfe9b57857 |
comparison
equal
deleted
inserted
replaced
1250:c49a48fcc364 | 1251:9e1559b08f0d |
---|---|
366 } else { | 366 } else { |
367 paint.setPen(PaintAssistant::scalePen(getBaseQColor())); | 367 paint.setPen(PaintAssistant::scalePen(getBaseQColor())); |
368 } | 368 } |
369 | 369 |
370 int xorigin = getVerticalScaleWidth(v, true, paint) + 1; | 370 int xorigin = getVerticalScaleWidth(v, true, paint) + 1; |
371 int w = v->getPaintWidth() - xorigin - 1; | |
372 | |
373 m_xorigins[v->getId()] = xorigin; // for use in getFeatureDescription | 371 m_xorigins[v->getId()] = xorigin; // for use in getFeatureDescription |
374 | 372 |
375 int yorigin = v->getPaintHeight() - 20 - paint.fontMetrics().height() - 7; | 373 int yorigin = v->getPaintHeight() - 20 - paint.fontMetrics().height() - 7; |
376 int h = yorigin - paint.fontMetrics().height() - 8; | 374 int h = yorigin - paint.fontMetrics().height() - 8; |
377 | 375 |