diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-05-27 21:36:07 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:18:11 +0300 |
commit | b1a84248a895c424b8e659f8c22c847ec3ad2fa9 (patch) | |
tree | 875a5b732cc3466896869a2d63a26972a9a3d618 /qt | |
parent | 79358ac0be738daa0f3b71dcc3caff8ea418118c (diff) |
empty rect handling in ShowRect.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/draw_widget.cpp | 1 | ||||
-rw-r--r-- | qt/mainwindow.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/qt/draw_widget.cpp b/qt/draw_widget.cpp index 90737f2561..e8086258dc 100644 --- a/qt/draw_widget.cpp +++ b/qt/draw_widget.cpp @@ -280,5 +280,6 @@ namespace qt void DrawWidget::ShowFeature(m2::RectD const & rect) { m_framework.ShowRect(rect); + UpdateScaleControl(); } } diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index c77dd28c8c..46d835f137 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -394,7 +394,7 @@ void MainWindow::OnSearchPanelItemClicked(int row, int) QTableWidget * table = static_cast<QTableWidget *>(m_Docks[3]->widget()); QRectF rect = table->item(row, 0)->data(Qt::UserRole).toRectF(); m2::RectD r2(rect.left(), rect.bottom(), rect.right(), rect.top()); - r2.Inflate(0.0001, 0.0001); +// r2.Inflate(0.0001, 0.0001); m_pDrawWidget->ShowFeature(r2); } |