mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
msvc: Fix compilation of TexRow
The problem was that "odocstringstream << (const char *) ptr" did not compile using msvc.
This commit is contained in:
parent
be3e470068
commit
10d7f6d479
@ -466,12 +466,12 @@ std::pair<int,int> TexRow::rowFromCursor(Cursor const & cur) const
|
||||
///
|
||||
docstring TexRow::asString(RowEntry const & entry)
|
||||
{
|
||||
odocstringstream os;
|
||||
std::ostringstream t;
|
||||
if (entry.is_math)
|
||||
os << "(1," << entry.math.id << "," << entry.math.cell << ")";
|
||||
t << "(1," << entry.math.id << "," << entry.math.cell << ")";
|
||||
else
|
||||
os << "(0," << entry.text.id << "," << entry.text.pos << ")";
|
||||
return os.str();
|
||||
t << "(0," << entry.text.id << "," << entry.text.pos << ")";
|
||||
return from_utf8( t.str() );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user