mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
revert 21523.
Sorry Uwe but if this does not compile it is a problem on your system. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21529 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b319cc487f
commit
5d906055af
@ -626,7 +626,7 @@ string const DocFileName::mangledFilename(std::string const & dir) const
|
|||||||
// If dir.size() > max length, all bets are off for YAP. We truncate
|
// If dir.size() > max length, all bets are off for YAP. We truncate
|
||||||
// the filename nevertheless, keeping a minimum of 10 chars.
|
// the filename nevertheless, keeping a minimum of 10 chars.
|
||||||
|
|
||||||
string::size_type max_length = max(100 - ((int)dir.size() + 1), 10);
|
string::size_type max_length = std::max(100 - ((int)dir.size() + 1), 10);
|
||||||
|
|
||||||
// If the mangled file name is too long, hack it to fit.
|
// If the mangled file name is too long, hack it to fit.
|
||||||
// We know we're guaranteed to have a unique file name because
|
// We know we're guaranteed to have a unique file name because
|
||||||
|
Loading…
Reference in New Issue
Block a user