fix #30016

	modified:   libmscore/barline.cpp
	modified:   libmscore/segment.cpp