X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyx_main.C;h=cc856fb70a4e3a8aaca7f0a644e1d1af14e227e5;hb=3815df7705b09920f9bb60c6fd9ee0576fe0a834;hp=4138b5d09569383c03052f17bab56a640a3bd630;hpb=0fc684e6e6d05f138418ded83fd02de62b9063e7;p=lyx.git diff --git a/src/lyx_main.C b/src/lyx_main.C index 4138b5d095..cc856fb70a 100644 --- a/src/lyx_main.C +++ b/src/lyx_main.C @@ -493,7 +493,7 @@ void LyX::restoreGuiSession(vector const & files) // if a file is specified, I assume that user wants to edit *that* file if (files.empty() && lyxrc.load_session) { - vector const & lastopened = pimpl_->session_->LastOpened().getfiles(); + vector const & lastopened = pimpl_->session_->lastOpened().getfiles(); // do not add to the lastfile list since these files are restored from // last seesion, and should be already there (regular files), or should // not be added at all (help files). @@ -501,7 +501,7 @@ void LyX::restoreGuiSession(vector const & files) bind(&LyXView::loadLyXFile, view, _1, false)); } // clear this list to save a few bytes of RAM - pimpl_->session_->LastOpened().clear(); + pimpl_->session_->lastOpened().clear(); } @@ -522,13 +522,13 @@ LyXView * LyX::newLyXView() } // if lyxrc returns (0,0), then use session info else { - string val = session().SessionInfo().load("WindowWidth"); + string val = session().sessionInfo().load("WindowWidth"); if (!val.empty()) width = convert(val); - val = session().SessionInfo().load("WindowHeight"); + val = session().sessionInfo().load("WindowHeight"); if (!val.empty()) height = convert(val); - if (session().SessionInfo().load("WindowIsMaximized") == "yes") + if (session().sessionInfo().load("WindowIsMaximized") == "yes") maximize = true; } @@ -536,10 +536,10 @@ LyXView * LyX::newLyXView() int posx = -1; int posy = -1; if (lyxrc.geometry_xysaved) { - string val = session().SessionInfo().load("WindowPosX"); + string val = session().sessionInfo().load("WindowPosX"); if (!val.empty()) posx = convert(val); - val = session().SessionInfo().load("WindowPosY"); + val = session().sessionInfo().load("WindowPosY"); if (!val.empty()) posy = convert(val); } @@ -1306,15 +1306,3 @@ kb_keymap & theTopLevelKeymap() } } // namespace lyx - - -namespace boost { - -void assertion_failed(char const* a, char const* b, char const* c, long d) -{ - lyx::lyxerr << "Assertion failed: " << a << ' ' << b << ' ' << c << ' ' - << d << '\n'; -} - -} // boost -