Ask Your Question
0

How to specify line thickness < 0.01cm in Draw?

asked 2017-05-13 13:31:43 +0200

Pistachio gravatar image

updated 2017-05-13 13:33:40 +0200

I need to specify a line thickness smaller than 0.01cm and larger than 0cm. LibreOffice draw only allows increments of 0.01cm in 'line properties'. I don't care for printing, I just want to screenshot the drawings. How do I do this?

LibreOffice 5.2.5.1 Windows 10

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2017-05-13 15:49:51 +0200

Lupp gravatar image

The predefined unit for the 'LineWidth' is 1/100 mm. Nonetheless the dialogue concerning the line properties only offers a resolution of 1/100 cm if the unit cm is set. The entered value obviously gets rounded to this resolution. And this hold even if you enter the unit explicitly like in "2.03 mm". A little bug, obviously.
If you want to keep the unit cm, but also to be able to handle LineWidth with full resolution you may use the (raw!) BASIC code posted below. It should also work with shapes in 'Writer' and in 'Calc'.

Sub setLineWidth()
On Error GoTo errorMessage
theDoc   = ThisComponent
theSel   = theDoc.CurrentSelection
If theSel.Count>1 Then GoTo errorMessage
theShape = theSel.GetByIndex(0)
theShape.LineWidth = InputBox("Input new 'Width' of the line, please."&Chr(10)&"The unit is 1/100 mm.")
GoTo success
errorMessage:
MsgBox("The selection did not accept the new line width."&Chr(10)+"Please check if a single 'Shape' was selected.")
success:
End Sub

Sub reportLineWidth()
On Error GoTo errorMessage
theDoc   = ThisComponent
theSel   = theDoc.CurrentSelection
If theSel.Count>1 Then GoTo errorMessage
theShape = theSel.GetByIndex(0)
MsgBox("The line Width is "+theShape.LineWidth+"/100 mm")
GoTo success
errorMessage:
MsgBox("The selection did not accept the request."&Chr(10)+"Please check if a single 'Shape' was selected.")
success:
End Sub
edit flag offensive delete link more

Comments

Has this bug been filed yet?

Pistachio gravatar imagePistachio ( 2017-05-13 15:55:14 +0200 )edit

Just went through the haystack with a finger and have to report "no needle".
The honorable society of unresolved bugs is rather large already. If you want to add a memeber nevertheless, you may report to this site.

Lupp gravatar imageLupp ( 2017-05-13 16:15:23 +0200 )edit
0

answered 2017-05-13 13:52:17 +0200

m.a.riosv gravatar image

I think changing the unit to mm on Menu/Tools/Options/LibreOffice Draw/General - Configuration, should be possible what you want.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-05-13 13:31:43 +0200

Seen: 203 times

Last updated: May 13 '17