* rowpainter.C (paintText): fix RtL space width display bug (2029)
+2005-09-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * text2.C (setCursor): remove the unused 'boundary' parameter for
+ the CursorSlice version; adapt the LCursor version.
+
+ * lyxrc.C (write):
+ * paragraph_pimpl.C (markErased):
+ * cursor.C (bruteFind2, bruteFond3): fix warnings.
+
2005-09-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* rowpainter.C (paintFirst): use a 'labeladdon' for TOP_* labels,
it.top().pos() = 0;
DocIterator et = c;
et.top().pos() = et.top().asMathInset()->cell(et.top().idx()).size();
- for (int i = 0; ; ++i) {
+ for (size_t i = 0; ; ++i) {
int xo;
int yo;
it.inset().cursorPos(it.top(), c.boundary() && ((i+1) == it.depth()), xo, yo);
// FIXME: bit more work needed to get 'from' and 'to' right.
pit_type from = cur.bottom().pit();
- pit_type to = cur.bottom().pit();
+ //pit_type to = cur.bottom().pit();
//lyxerr << "Pit start: " << from << endl;
//lyxerr << "bruteFind3: x: " << x << " y: " << y
+2005-09-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * QGraphics.C (update_contents): fix compiler warning.
+
2005-09-15 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QCitationDialog.C (find): correct start iterator when searching
// set the right default unit
LyXLength::UNIT unitDefault = LyXLength::CM;
switch (lyxrc.default_papersize) {
- case PAPER_DEFAULT: break;
-
case PAPER_USLETTER:
case PAPER_USLEGAL:
case PAPER_USEXECUTIVE:
unitDefault = LyXLength::IN;
break;
-
- case PAPER_A3:
- case PAPER_A4:
- case PAPER_A5:
- case PAPER_B5:
- unitDefault = LyXLength::CM;
+ default:
break;
}
os << "a5"; break;
case PAPER_B5:
os << "b5"; break;
- case PAPER_DEFAULT: break;
+ case PAPER_DEFAULT:
+ case PAPER_CUSTOM:
+ case PAPER_B3:
+ case PAPER_B4: break;
}
os << "\"\n";
}
bool setCursor(LCursor & cur, pit_type par, pos_type pos,
bool setfont = true, bool boundary = false);
///
- void setCursor(CursorSlice &, pit_type par,
- pos_type pos, bool boundary = false);
+ void setCursor(CursorSlice &, pit_type par, pos_type pos);
///
void setCursorIntern(LCursor & cur, pit_type par,
pos_type pos, bool setfont = true, bool boundary = false);
+2005-09-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * math_nestinset.C (cursorPos): parameter `boundary' is unused.
+
2005-09-15 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* math_nestinset.C (doDispatch): use cur.normalize() to prevent crash
}
-void MathNestInset::cursorPos(CursorSlice const & sl, bool boundary,
+void MathNestInset::cursorPos(CursorSlice const & sl, bool /*boundary*/,
int & x, int & y) const
{
// FIXME: This is a hack. Ideally, the coord cache should not store
if (erased) {
erase(0, size());
} else {
- pos_type i = 0;
-
for (pos_type i = 0; i < size(); ++i) {
changes_->set(Change::UNCHANGED, i);
if (owner_->isInset(i))
}
-void LyXText::setCursor(CursorSlice & cur, pit_type par,
- pos_type pos, bool boundary)
+void LyXText::setCursor(CursorSlice & cur, pit_type par, pos_type pos)
{
BOOST_ASSERT(par != int(paragraphs().size()));
cur.pit() = par;
pit_type par, pos_type pos, bool setfont, bool boundary)
{
cur.boundary(boundary);
- setCursor(cur.top(), par, pos, boundary);
+ setCursor(cur.top(), par, pos);
cur.setTargetX();
if (setfont)
setCurrentFont(cur);