Get rid of extraneous whitespace.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9466 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-01-12 10:30:46 +00:00
parent 078c79d092
commit f717cb6b22
11 changed files with 18 additions and 18 deletions

View File

@ -79,7 +79,7 @@ public:
/** perform pending painting updates. \c fitcursor means first
* to do a fitcursor, and to force an update if screen
* position changes. \c forceupdate means to force an update
* in any case.
* in any case.
*/
void update(bool fitcursor = true, bool forceupdate = true);
/// move the screen to fit the cursor. Only to be called with

View File

@ -56,7 +56,7 @@ struct BufferView::Pimpl : public boost::signals::trackable {
void setBuffer(Buffer * buf);
///
void resizeCurrentBuffer();
//
//
bool fitCursor();
///
void update(bool fitcursor = false, bool forceupdate = true);

View File

@ -11,7 +11,7 @@
CoordCache theCoords;
// just a helper to be able to set a breakpoint
void lyxbreaker(void const * data, const char * hint, int size)
{
@ -23,7 +23,7 @@ void lyxbreaker(void const * data, const char * hint, int size)
void lyxaborter(int x, int y)
{
lyxerr << "abort on x: " << x << " y: " << y << std::endl;
lyxerr << "abort on x: " << x << " y: " << y << std::endl;
BOOST_ASSERT(false);
}
@ -36,7 +36,7 @@ void CoordCache::clear()
}
Point CoordCache::get(LyXText const * text, lyx::pit_type pit)
Point CoordCache::get(LyXText const * text, lyx::pit_type pit)
{
ParPosCache::iterator const it = pars_.find(text);
BOOST_ASSERT(it != pars_.end());

View File

@ -9,7 +9,7 @@
2004-11-26 Alfredo Braunstein <abraunst@lyx.org>
* Painter.C: adjust
* Painter.C: adjust
* screen.[Ch] (fitCursor): remove,
(showCursor): adjust, (redraw): adjust

View File

@ -66,7 +66,7 @@ int ascent(char c, LyXFont const & f)
return 1;
QRect const & r = metrics(f).boundingRect(c);
// Qt/Win 3.2.1nc (at least) corrects the GetGlyphOutlineA|W y
// value by the height: (x, -y-height, width, height).
// value by the height: (x, -y-height, width, height).
// Other versions return: (x, -y, width, height)
#if defined(Q_WS_WIN) && (QT_VERSION == 0x030201)
return -(r.top() + r.height());
@ -82,7 +82,7 @@ int descent(char c, LyXFont const & f)
return 1;
QRect const & r = metrics(f).boundingRect(c);
// Qt/Win 3.2.1nc (at least) corrects the GetGlyphOutlineA|W y
// value by the height: (x, -y-height, width, height).
// value by the height: (x, -y-height, width, height).
// Other versions return: (x, -y, width, height)
#if defined(Q_WS_WIN) && (QT_VERSION == 0x030201)
return r.bottom() + r.height() + 1;

View File

@ -316,7 +316,7 @@ string const InsetGraphics::createLatexOptions() const
// Make sure rotation angle is not very close to zero;
// a float can be effectively zero but not exactly zero.
if (!params().rotateAngle.empty()
if (!params().rotateAngle.empty()
&& !float_equal(strToDbl(params().rotateAngle), 0.0, 0.001)) {
options << " angle=" << params().rotateAngle << ",\n";
if (!params().rotateOrigin.empty()) {
@ -409,7 +409,7 @@ string const InsetGraphics::createDocBookAttributes() const
double const scl = strToDbl(params().scale);
if (!params().scale.empty() && !float_equal(scl, 0.0, 0.05)) {
if (!float_equal(scl, 100.0, 0.05))
options << " scale=\""
options << " scale=\""
<< static_cast<int>( (scl) + 0.5 )
<< "\" ";
} else {

View File

@ -177,7 +177,7 @@ void InsetGraphicsParams::Write(ostream & os, string const & bufpath) const
if (clip) // clip image
os << "\tclip\n";
if (!rotateAngle.empty()
if (!rotateAngle.empty()
&& !float_equal(strToDbl(rotateAngle), 0.0, 0.001))
os << "\trotateAngle " << rotateAngle << '\n';
if (!rotateOrigin.empty())

View File

@ -344,7 +344,7 @@ void LyX::init(bool gui)
// SIGPIPE can be safely ignored.
#if defined (USE_MACOSX_PACKAGING)
// Set PATH for LyX/Mac
// Set PATH for LyX/Mac
//
// LyX/Mac is a relocatable application bundle; here we add to
// the PATH so it can find binaries like reLyX inside its own
@ -355,7 +355,7 @@ void LyX::init(bool gui)
newpath += "/sw/bin:/usr/local/bin:"
"/usr/local/teTeX/bin/powerpc-apple-darwin-current";
PutEnv(newpath);
lyxerr[Debug::INIT] << "Running from LyX/Mac bundle. "
lyxerr[Debug::INIT] << "Running from LyX/Mac bundle. "
"Setting PATH to: " << GetEnv("PATH") << endl;
#endif
@ -363,7 +363,7 @@ void LyX::init(bool gui)
string const & locale_dir = package().locale_dir();
FileInfo fi(locale_dir);
if (fi.isOK() && fi.isDir()) {
lyxerr[Debug::INIT]
lyxerr[Debug::INIT]
<< "Setting locale directory to "
<< locale_dir << endl;
//gettext_init(locale_dir);
@ -382,7 +382,7 @@ void LyX::init(bool gui)
lyxrc.tempdir_path = package().temp_dir();
lyxrc.document_path = package().document_dir();
if (lyxrc.template_path.empty()) {
lyxrc.template_path = AddPath(package().system_support(),
"templates");

View File

@ -32,7 +32,7 @@
2005-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
* convert.h: remove the specializations, don't included unneeded
headers
headers
* convert.C: add specialization for unsigned long
2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>

View File

@ -129,7 +129,7 @@ void add_known_command(string const & command, string const & o1,
// definition o1 o2 invocation result
// \newcommand{\foo}{bar} "" false \foo bar
// \newcommand{\foo}[1]{bar #1} "[1]" false \foo{x} bar x
// \newcommand{\foo}[1][]{bar #1} "[1]" true \foo bar
// \newcommand{\foo}[1][]{bar #1} "[1]" true \foo bar
// \newcommand{\foo}[1][]{bar #1} "[1]" true \foo[x] bar x
// \newcommand{\foo}[1][x]{bar #1} "[1]" true \foo[x] bar x
unsigned int nargs = 0;

View File

@ -175,7 +175,7 @@ bool textUndoOrRedo(BufferView & bv,
Undo undo = stack.top();
stack.pop();
// We will store in otherstack the part of the document under 'undo'
// We will store in otherstack the part of the document under 'undo'
DocIterator cell_dit = undo.cell.asDocIterator(&bv.buffer()->inset());
recordUndo(Undo::ATOMIC, cell_dit,