mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
fix insetinclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@921 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
74952b3ab2
commit
fdc357ba2b
@ -195,14 +195,17 @@ static string unique_id() {
|
||||
#ifdef HAVE_SSTREAM
|
||||
std::ostringstream ost;
|
||||
ost << "file" << ++seed;
|
||||
|
||||
// Needed if we use lyxstring.
|
||||
return ost.str().c_str();
|
||||
#else
|
||||
char ctmp[16];
|
||||
ostrstream ost(ctmp,16);
|
||||
ost << "file" << ++seed << '\0';
|
||||
#endif
|
||||
|
||||
// Needed if we use lyxstring.
|
||||
return ost.str().c_str();
|
||||
return ost.str();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user