fix writing of integers... duh...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3043 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-11-20 07:04:00 +00:00
parent 2400b5b919
commit 5a3fc63bfe
3 changed files with 18 additions and 1 deletions

View File

@ -252,7 +252,6 @@ bool MathHullInset::numberedType() const
void MathHullInset::validate(LaTeXFeatures & features) const void MathHullInset::validate(LaTeXFeatures & features) const
{ {
if (ams()) if (ams())
features.require("amsstyle"); features.require("amsstyle");

View File

@ -227,3 +227,17 @@ WriteStream & WriteStream::operator<<(char c)
++line_; ++line_;
return *this; return *this;
} }
WriteStream & WriteStream::operator<<(int i)
{
os << i;
return *this;
}
WriteStream & WriteStream::operator<<(unsigned int i)
{
os << i;
return *this;
}

View File

@ -115,6 +115,10 @@ struct WriteStream {
WriteStream & operator<<(char const *); WriteStream & operator<<(char const *);
/// ///
WriteStream & operator<<(char); WriteStream & operator<<(char);
///
WriteStream & operator<<(int);
///
WriteStream & operator<<(unsigned int);
/// ///
Buffer const * buffer; Buffer const * buffer;