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:
André Pönitz 2002-11-25 19:17:42 +00:00
parent 1a0655a514
commit a9c2dd92df

View File

@ -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