oox: drop obsolete check. Minimum GCC version is 13

Since
commit 16dd61ab4d
Author: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Date:   Sat Mar 21 08:40:09 2026 +0200

    Bump minimum GCC version to 13

Change-Id: I8ac797a49acde27bc5f39af80e479bc5d218fd69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210554
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2026-09-09 09:30:51 +02:00
parent b4db35eeb2
commit 0514849637
-14
View File
@@ -4216,15 +4216,8 @@ void DrawingML::WriteBodyProps(const css::uno::Reference< css::uno::XInterface >
sWritingMode = "vert270";
else if (nTextPreRotateAngle == -180 || nTextPreRotateAngle == 180)
{
#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 12
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
nTextRotateAngleDeg100
= NormAngle18000(nTextRotateAngleDeg100.value_or(0_deg100) + 18000_deg100);
#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 12
#pragma GCC diagnostic pop
#endif
// ToDo: Examine insets. They might need rotation too. Check diagrams (SmartArt).
}
else
@@ -4265,15 +4258,8 @@ void DrawingML::WriteBodyProps(const css::uno::Reference< css::uno::XInterface >
std::optional<OString> sTextRotateAngleMSUnit;
if (nTextRotateAngleDeg100.has_value())
#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 12
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
sTextRotateAngleMSUnit
= oox::drawingml::calcRotationValue(nTextRotateAngleDeg100.value().get());
#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 12
#pragma GCC diagnostic pop
#endif
// Prepare attributes 'anchor' and 'anchorCtr'
// LibreOffice has 12 value sets, MS Office only 6. We map them so, that it reverses the