From: Abdelrazak Younes Date: Mon, 16 Jun 2008 19:51:00 +0000 (+0000) Subject: revert 25271 which was problematic. Sorry for the delay. X-Git-Tag: 1.6.10~4368 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8db9fcfcb997332626701d196430c24ff23c9515;p=lyx.git revert 25271 which was problematic. Sorry for the delay. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25283 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 5ab1a315e7..7fafe934d5 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -1312,7 +1312,6 @@ bool TabWorkArea::setCurrentWorkArea(GuiWorkArea * work_area) GuiWorkArea * TabWorkArea::addWorkArea(Buffer & buffer, GuiView & view) { - blockSignals(true); GuiWorkArea * wa = new GuiWorkArea(buffer, view); wa->setUpdatesEnabled(false); // Hide tabbar if there's no tab (avoid a resize and a flashing tabbar @@ -1329,7 +1328,7 @@ GuiWorkArea * TabWorkArea::addWorkArea(Buffer & buffer, GuiView & view) showBar(count() > 1); updateTabTexts(); - blockSignals(false); + return wa; } @@ -1372,11 +1371,7 @@ void TabWorkArea::on_currentTabChanged(int i) LASSERT(wa, return); BufferView & bv = wa->bufferView(); bv.cursor().fixIfBroken(); - if (bv.workHeight() != wa->viewport()->height() - || bv.workWidth() != wa->viewport()->width()) - wa->resizeBufferView(); - else - bv.updateMetrics(); + bv.updateMetrics(); wa->setUpdatesEnabled(true); wa->redraw(); wa->setFocus();