Source
278
278
if(m_style == PIXEL) return psize_t(1, 1);
279
279
const QSize& s = QwtSymbol::size();
280
280
return psize_t(s.width(), s.height());
281
281
}
282
282
283
283
void QPSymbol::setSize(double width, double height, bool heightIsPixel) {
284
284
const QSize& s = QwtSymbol::size();
285
285
if(s.width() != width || s.height() != height || (isCharacter() &&
286
286
heightIsPixel != m_heightIsPixel)) {
287
287
m_heightIsPixel = heightIsPixel;
288
-
#if QWT_VERSION >= 0x060000
289
-
// CAS-12378, make plots look like on RHEL6/Qwt5
290
-
width += 1.0;
291
-
height += 1.0;
292
-
#endif
293
288
QwtSymbol::setSize((int)(width + 0.5), (int)(height + 0.5));
294
289
} else {
295
290
m_heightIsPixel = heightIsPixel;
296
291
}
297
292
}
298
293
299
294
bool QPSymbol::heightIsPixel() const { return m_heightIsPixel; }
300
295
301
296
void QPSymbol::setHeightIsPixel(bool pixel) {
302
297
if(isCharacter() && pixel != m_heightIsPixel) {