comparison view/Pane.cpp @ 861:59a22f3bf86d

Do not draw the model time extents if the top layer does not have time as its x axis (fixing #1057)
author Chris Cannam
date Thu, 11 Sep 2014 13:53:41 +0100
parents c17719e488c9
children 0cdaf382f21e 7463ece5d5e8
comparison
equal deleted inserted replaced
859:d282967236d5 861:59a22f3bf86d
467 if (waveformModel && workModel && haveSomeTimeXAxis) break; 467 if (waveformModel && workModel && haveSomeTimeXAxis) break;
468 } 468 }
469 469
470 m_scaleWidth = 0; 470 m_scaleWidth = 0;
471 471
472 if (workModel) { 472 if (workModel && hasTopLayerTimeXAxis()) {
473 drawModelTimeExtents(r, paint, workModel); 473 drawModelTimeExtents(r, paint, workModel);
474 } 474 }
475 475
476 if (m_manager && m_manager->shouldShowVerticalScale() && topLayer) { 476 if (m_manager && m_manager->shouldShowVerticalScale() && topLayer) {
477 drawVerticalScale(r, topLayer, paint); 477 drawVerticalScale(r, topLayer, paint);