diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index c9f47d4..fd157dd 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -3134,6 +3134,9 @@ void FormDraw::setRowHeight(double dHight, QProgressBar *progressBar, int iSplit //emit CallManage::getInstance()->sig_ChangeLeftScale(m_strUuid, form->m_strSlfName, m_strWellName, m_strTrackName, form->m_strLineName, form->m_iX1); + //比例改变后,避免井壁取心等组件变形,需要重新刷新 + form->resetPosition(); + form->replot();//屏蔽,缩减时间 } } diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index e759253..a97d3fd 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -9970,7 +9970,17 @@ void QMyCustomPlot::resetPosition_SwallCore() it++; // QCPRange tmpRange = pDraggableRect->getRange(); - pDraggableRect->setRange(tmpRange.lower, tmpRange.upper, false); + + //-------------------------- + // 设置初始范围 + double h = 32; + double Depth = tmpRange.lower; + double x1 = this->xAxis->coordToPixel(Depth); + double Depth2 = this->xAxis->pixelToCoord(x1-h); + //-------------------------- + + // + pDraggableRect->setRange(Depth, Depth2, false); } }