Automatical displacement of objects

I am now making a map with LibreDraw, however, many objects had shifted after saving the file without any actions from me

For example, the original thing by me is shown below, the yellow circle align with the white one behind it (the one above)
However, the yellow circle automatically shifted after saving, making it not longer align with the white one (the one below)

Can anyoen identify the reason and tell me how to prevent such cases?

OS name, exact LO version, save format?
Do you set alignment constraints on groups of objects? How do you structure (group) your drawing? Do you apply styles (for stability and predictability)? Is an alignment grid active?

Is the 16 in a circle a character? Try converting it to a curve, it should then stay aligned.

See this similar question, PDF Export changing the original document for apparently no reason

Yes, it is a character. I know converting it into a curve fixes it, but does that mean all my characters should be converted into a curve? It should display it properly, regardlless of this process.

Only where it is causing alignment issues and until tdf#164240 is fixed

Please note that this is a different question and I was asking the original poster of this question

My bad. I received an email to the other thread, but now it seems your comment is in this thread. That confused me.

Windows 11
Version: 25.2.4.3 (X86_64)
I didn’t group the white and yellow circle nor apply special styles on it

Please attach the file (or send it through a private message if you prefer) to see if grouping and alignment can improve the result.

the 16 is typed inside the yellow circle

I assume it the “label” of the circle, not an independent text box. Thus it remains always centred. Tou could select this yellow circle and the black one, align them on their centres and make them a group so that the constraint always applies.

I cannot reproduce, could it be accidental move of one object?
DisplacementOfObjects124315.odg (16.6 KB)

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-NZ (en_NZ); UI: en-GB
Calc: CL threaded

osaka.odg (85.8 KB)
sorry for being late

You might have had snapping on, but objects snap to their edges, not to their centres (I think there is a bug report for this), so it looks like the station numbers have snapped to the snap grid. Lines on the other hand, snap to their centres.

It certainly looks like a lot of work. It might have been a bit easier if you used some of the following suggestions.

  • Use separate layers, maybe for each rail line or maybe just for the accompanying text and for the station numbers. It would make selecting easier as well as allowing for different versions. It can let you lock a layer, e.g. rail lines, while you work on the labels and you then know that you won’t move the rail lines accidentally.
  • Use different styles for different object types. Currently everything is Default Drawing Style.The station markers need different settings (different colour per rail line too) than the text and different from the rail lines.
    • I see no reason to have a margin at all for the text with the station number. Changing the margins to 0 and the anchor to centre, in the Text tab of a dedicated style would change it for all and make it easier to select neighbouring objects
  • Not all circles are circles, hold down Shift while drawing a circle to keep it round.
  • Not all groups of stations are grouped the same. Make sure you include the bold outer shape in the group so you can move it as a single item.
  • Instead of using two different text objects to get a black outline, consider setting the font colour back to Automatic and using Outline in the Font Effects tab.
    Otherwise, you could use white text and add a black Text Glow effect. Unfortunately, it doesn’t seem to be controlled by styles nor painter so not quite ready for intensive use.

Amazing work though

The provided document shows that your circles are not centred over each other. And this is true not only for the 16-labelled mark.

To fix:

  • change reference position in Format>Position & Size: choose the centre in Base point
    This makes things much easier to check if overlaying shapes share the same reference.
  • you can either modify X and Y position to set them to the same coordinates
  • or:
    1. select the “inner” shape (the one with the numeric label
    2. shift-select the “outer” shape
    3. Shapes>Align Objects>Centered, then …>Middle
      The “inner” shape centre will be shifted on the “outer” shape centre.
  • optionally (while your shapes are still selected), Shapes>Group Shapes>Group so that you can move around both shapes as a block

When exported to PDF, your shapes remain correctly centred. Obviously, you have to fix many other marks, like 17.

I think this is exactly what am I asking? The circles are centered over each other originally but one of them moved itself such that they aren’t longer centered eachh other