Am 08.09.2010 20:08, schrieb Pavel Sanda:

i was going to look what are the values here, but my lyx crashes when i go to
horizontal line dialog, backtrace below.
#2  0xb6f8d348 in abort () from /lib/libc.so.6
#3  0x087c224c in lyx::frontend::GuiLine::dialogToParams() const ()
#4  0x0867cf9f in lyx::frontend::InsetParamsDialog::checkWidgets(bool) ()
#5  0x0867d45a in 
lyx::frontend::InsetParamsDialog::on_synchronizedViewCB_stateChanged(int) ()
#6  0x0867d754 in 
lyx::frontend::InsetParamsDialog::InsetParamsDialog(lyx::frontend::GuiView&, 
lyx::frontend::InsetParamsWidget*) ()
#7  0x0867da32 in lyx::frontend::createDialog(lyx::frontend::GuiView&, 
lyx::InsetCode) ()
#8  0x0867da79 in lyx::frontend::createDialog(lyx::frontend::GuiView&, std::string 
const&) ()
#9  0x086419f4 in lyx::frontend::GuiView::build(std::string const&) ()
#10 0x0864968f in lyx::frontend::GuiView::findOrBuild(std::string const&, bool)

when i enabled debuging symbols on, the crash disappeared though.
so i can't give more precise backtrace, sorry.

Abdel, it didn't crash before you transformed the dialog from CommandInset to InsetWidgets.

I need mi.base.textwidth in LineInset::draw. JMarc told me how to acces it
via text_metrics_.width() in rowpainter.cpp. But
text_metrics_.width() gives 684

my box gives 686.

Not too far away ;-)

I nevertheless committed the patch hoping that this issues can be solved
soon.

i wonder who is going to do it once the code is committed :(

JMarc, Vincent, Abdel? OK, committing this hack is not perfect but it works
(at least on my PC)

well, nobody reacted as you hoped. what do you propose now?

Give me some time please.

few other glitches i saw:
- no focus in dialog set up initially

Abdel?

- there should be some implicit value in boxes, which are generally sensible
   (best would be such values, which would repeat the behaviour of 1.6
   version of horizontal line).

I don't understand. The default values when inserting a horizontal line are those of the old \lyxline.

- if i set big offset by mistake like, like 1 cm it has very strange painting
   results and interfering randomly with tezt/insetss around. moreover the
   typeset looks completely different. i guess some geometry stuff is broken.

I'm not on my box and thus cannot test, but when committed it worked well - the line drawn on screen looked nearly as in the PDF output. Do you have a LyX testfile for me?

regards Uwe

Reply via email to