mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Make it compile when USE_BOOST_FORMAT is unset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5716 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1a0655a514
commit
a9c2dd92df
@ -330,12 +330,12 @@ void FormBase::postMessage(string const & message)
|
||||
{
|
||||
lyx::Assert(message_widget_);
|
||||
|
||||
int const width = message_widget_->w - 10;
|
||||
#if USE_BOOST_FORMAT
|
||||
boost::format fmter = warning_posted_ ?
|
||||
boost::format(_("WARNING! %1$s")) :
|
||||
boost::format("%1$s");
|
||||
|
||||
int const width = message_widget_->w - 10;
|
||||
string const str = formatted(boost::io::str(fmter % message),
|
||||
width, FL_NORMAL_SIZE);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user