I run into this all the time, and it would be great if Dorico would have a setting to automatically erase the background here. For now my workaround is to just input a few non-breaking spaces as Shift-X text, switch to Engrave, select Erase Background, and position the spaces. With the current drawing order that will erase the barline but not the 2. You can then copy it elsewhere as needed.
I used @pianoleo 's work-around (see above) for a project in Dorico 3.5.
When I open the project in Dorico 4, it looks like this:
Resetting the number 2 in Library menu > Music Symbols… > Bar count 2 (bar repeats) puts it in the correct location, but the bar line is no longer hidden:
How can I put a white background behind the “2” again, to hide the bar line?
When I try Leo’s method in Dorico 4 I can drag a white rectangle on top of the 2, but when I click “Z order” to move it to the back, it jumps up to the right, and I can no longer move it - neither dragging it nor changing offset values has any effect.
I don’t think that’s quite it, Leo. There is definitely a change, yes, related to the changes we made to try to improve the relative positioning and scaling of music symbols used in chord symbols. Please see this earlier thread: