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