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:
Martin Vermeer 2005-03-31 14:34:57 +00:00
parent 173634c205
commit 2e801efc57
4 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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'));
}

View File

@ -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'));
}