mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix error message positioning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9766 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
173634c205
commit
2e801efc57
@ -1,4 +1,11 @@
|
||||
|
||||
2005-03-30 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* ExternalSupport.C (writeExternal):
|
||||
* insetgraphics.C (latex):
|
||||
* insetnote.C (latex, linuxdoc, docbook, plaintext): fix
|
||||
mis-count in computing latex error location
|
||||
|
||||
2005-03-21 Alfredo Braunstein <abraunst@lyx.org>
|
||||
|
||||
* insettabular.[Ch]: rename setPos -> setCursorFromCoordinates and
|
||||
|
@ -314,7 +314,7 @@ int writeExternal(InsetExternalParams const & params,
|
||||
str = substituteCommands(params, str, format);
|
||||
str = substituteOptions(params, str, format);
|
||||
os << str;
|
||||
return int(lyx::count(str.begin(), str.end(),'\n') + 1);
|
||||
return int(lyx::count(str.begin(), str.end(),'\n'));
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
@ -750,7 +750,7 @@ int InsetGraphics::latex(Buffer const & buf, ostream & os,
|
||||
lyxerr[Debug::GRAPHICS] << "InsetGraphics::latex outputting:\n"
|
||||
<< latex_str << endl;
|
||||
// Return how many newlines we issued.
|
||||
return int(lyx::count(latex_str.begin(), latex_str.end(),'\n') + 1);
|
||||
return int(lyx::count(latex_str.begin(), latex_str.end(),'\n'));
|
||||
}
|
||||
|
||||
|
||||
|
@ -232,7 +232,7 @@ int InsetNote::latex(Buffer const & buf, ostream & os,
|
||||
string const str = ss.str();
|
||||
os << str;
|
||||
// Return how many newlines we issued.
|
||||
return int(lyx::count(str.begin(), str.end(),'\n') + 1);
|
||||
return int(lyx::count(str.begin(), str.end(),'\n'));
|
||||
}
|
||||
|
||||
|
||||
@ -254,7 +254,7 @@ int InsetNote::linuxdoc(Buffer const & buf, std::ostream & os,
|
||||
string const str = ss.str();
|
||||
os << str;
|
||||
// Return how many newlines we issued.
|
||||
return int(lyx::count(str.begin(), str.end(),'\n') + 1);
|
||||
return int(lyx::count(str.begin(), str.end(),'\n'));
|
||||
}
|
||||
|
||||
|
||||
@ -276,7 +276,7 @@ int InsetNote::docbook(Buffer const & buf, std::ostream & os,
|
||||
string const str = ss.str();
|
||||
os << str;
|
||||
// Return how many newlines we issued.
|
||||
return int(lyx::count(str.begin(), str.end(),'\n') + 1);
|
||||
return int(lyx::count(str.begin(), str.end(),'\n'));
|
||||
}
|
||||
|
||||
|
||||
@ -294,7 +294,7 @@ int InsetNote::plaintext(Buffer const & buf, std::ostream & os,
|
||||
string const str = ss.str();
|
||||
os << str;
|
||||
// Return how many newlines we issued.
|
||||
return int(lyx::count(str.begin(), str.end(),'\n') + 1);
|
||||
return int(lyx::count(str.begin(), str.end(),'\n'));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user