Abdelrazak Younes wrote:

> Hi there,
> 
> I think I have advanced well enough that trunk is usable again with
> regards to painting. Please report (or try to fix ;-)) any problem you
> encounter. 

Open the attached test.lyx and erase the 'W', the row is borked. The problem
is that computeRowMetrics assumed starting with a fresh row with default
values. 

I'll commit row.diff that fixes this.

A/

Index: TextMetrics.cpp
===================================================================
--- TextMetrics.cpp	(revision 19986)
+++ TextMetrics.cpp	(working copy)
@@ -311,6 +311,11 @@
 void TextMetrics::computeRowMetrics(pit_type const pit,
 		Row & row) const
 {
+
+	row.label_hfill = 0;
+	row.hfill = 0;
+	row.separator = 0;
+
 	Buffer & buffer = bv_->buffer();
 	Paragraph const & par = text_->getPar(pit);
 

Attachment: test.lyx
Description: application/lyx

Reply via email to