even less framing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27556 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-11-16 15:32:11 +00:00
parent cc0bdcc36f
commit ad4f5eec6c

View File

@ -936,15 +936,17 @@ void GuiView::setCurrentWorkArea(GuiWorkArea * wa)
return;
}
GuiWorkArea * old_gwa = theGuiApp()->currentView()->currentWorkArea();
if (old_gwa != wa) {
if (old_gwa == wa)
return;
theGuiApp()->setCurrentView(this);
d.current_work_area_ = wa;
for (int i = 0; i != d.splitter_->count(); ++i) {
if (d.tabWorkArea(i)->setCurrentWorkArea(wa)) {
if (d.current_main_work_area_)
d.current_main_work_area_->setFrameStyle(QFrame::NoFrame);
//if (d.current_main_work_area_)
// d.current_main_work_area_->setFrameStyle(QFrame::NoFrame);
d.current_main_work_area_ = wa;
d.current_main_work_area_->setFrameStyle(QFrame::Box | QFrame::Plain);
//d.current_main_work_area_->setFrameStyle(QFrame::Box | QFrame::Plain);
//d.current_main_work_area_->setLineWidth(2);
LYXERR(Debug::DEBUG, "Current wa: " << currentWorkArea() << ", Current main wa: " << currentMainWorkArea());
return;
@ -956,7 +958,6 @@ void GuiView::setCurrentWorkArea(GuiWorkArea * wa)
bv.cursor().fixIfBroken();
bv.updateMetrics();
wa->setUpdatesEnabled(true);
}
LYXERR(Debug::DEBUG, "Current wa: " << currentWorkArea() << ", Current main wa: " << currentMainWorkArea());
}