Edwin Leuven wrote:
Abdelrazak Younes wrote:
Is it with the table toolbar or the table dialog?
both
if i insert a table, select it, and unset all borders with toolbar i
still see a grid
there seems to be a problem with drawing, not with the dialog or toolbar
i looked at this more closely and i need get rid of the check at the
beginning of setQPainterPen to get correct drawing of table borders
void QLPainter::setQPainterPen(QPainter & qp, LColor_color col,
Painter::line_style ls, Painter::line_width lw)
{
//if (col == current_color_ && ls == current_ls_ && lw == current_lw_)
// return;
...
it seems that current_ls_ is not current
to see this yourself apply the attached patch and set/unset a couple of
borders
i haven't been able to track down where the pen style is changed though...
Index: src/frontends/qt4/QLPainter.C
===================================================================
--- src/frontends/qt4/QLPainter.C (revision 14176)
+++ src/frontends/qt4/QLPainter.C (working copy)
@@ -97,8 +97,19 @@
line_style ls,
line_width lw)
{
+ if (ls == line_solid)
+ lyxerr << "par = Solid" << std::endl;
+ if (ls == line_onoffdash )
+ lyxerr << "par = Dot" << std::endl;
+
QPainter qp(qwa_->paintDevice());
setQPainterPen(qp, col, ls, lw);
+
+ if (qp.pen().style() == Qt::SolidLine)
+ lyxerr << "pen = Solid" << std::endl;
+ if (qp.pen().style() == Qt::DotLine)
+ lyxerr << "pen = Dot" << std::endl;
+
qp.drawLine(x1, y1, x2, y2);
}