Description: The problem with styles in the Russian interface of libreoffice. When opening a file created in MS Word, different paragraphs of text have different font sizes (example - 10pt and 12pt). In the source material, the font size is the same. Also, if you switch to the English interface - the font will be the same size Steps to Reproduce: 1.Open file example.docx 2. 3. Actual Results: Paragraphs are displayed at different sizes Expected Results: Text must be the same size Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.5.1.0.0+ (X86_64) / LibreOffice Community Build ID: c3af56a1fe2fa8b004a445743478da610cf9af22 CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: qt5 (cairo+xcb) Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU Calc: threaded
Created attachment 185080 [details] file with bug text
Repro using Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 6836776fa295293c114c267bca38d18603993a54 CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: ru-RU Calc: CL threaded No repro using Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 6836776fa295293c114c267bca38d18603993a54 CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: en-US Calc: CL threaded The difference is in Default Paragraph Style, which imports with Char Height 12 when using en-US UI, but it is 10 when using ru-RU UI. Also repro using 3.3.0; I couldn't test in OOo, because I don't have a multi-language setup of that.
The problem is the conflict of names in the document: it has a style named "Базовый", which is the UI name of style "Standard" in Russian UI, and which is used for Word's "Normal" style. First, Word's "Normal" is read, and its settings get written to the "Standard" style; then, Word's "Базовый" is read, and the custom name happens to find the UI name of "Standard" (in StyleSheetTable::ApplyStyleSheetsImpl, using a call to 'xStyles->getByName( sConvertedStyleName )'), and then its properties get overwritten. No idea how to fix it.