#include <config.h>
-#include <algorithm>
-
#include "frontends/Painter.h"
#include "frontends/screen.h"
#include "frontends/font_metrics.h"
#include "lyxrow_funcs.h"
#include "metricsinfo.h"
+#include <algorithm>
+
+using namespace lyx::support;
+
using std::max;
using lyx::pos_type;
{
Inset * inset = const_cast<Inset*>(pit_->getInset(pos));
- lyx::Assert(inset);
+ Assert(inset);
#warning inset->update FIXME
inset->update(perv(bv_), false);
int const endx = text_.selection.end.x();
int const starty = text_.selection.start.y();
int const endy = text_.selection.end.y();
- RowList::iterator startrow = text_.selection.start.row();
- RowList::iterator endrow = text_.selection.end.row();
+ RowList::iterator startrow = text_.getRow(text_.selection.start);
+ RowList::iterator endrow = text_.getRow(text_.selection.end);
if (text_.bidi_same_direction) {
int x;