Kaydet (Commit) 1f1ebf7d authored tarafından Lennard's avatar Lennard Kaydeden (comit) Bosdonnat Cedric

fdo#34897 numbers were wrong, code unnecessary

Text flow is perhaps not intended to specify rotation, created data may misbehave on
other applications, and there is no reason for this unnecessary special case.
(Especially obvious because there is no text flow that causes 180 deg rotation.)
Theoretically, you could delete all three if-cases as in the earlier version of this patch,
but that ?could? come at the cost of backwards compatibility.

Change-Id: I0b1cac78e549c2126d7e45298629e28fc76ac95d
Signed-off-by: 's avatarLennard <Wasserthal@nefkom.net>
Reviewed-on: https://gerrit.libreoffice.org/1165Reviewed-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
üst 9865cc0a
...@@ -690,16 +690,10 @@ void EscherPropertyContainer::CreateTextProperties( ...@@ -690,16 +690,10 @@ void EscherPropertyContainer::CreateTextProperties(
sal_True ) sal_True )
? (sal_uInt16)( ( *((sal_Int32*)aAny.getValue() ) ) + 5 ) / 10 : 0; ? (sal_uInt16)( ( *((sal_Int32*)aAny.getValue() ) ) + 5 ) / 10 : 0;
if (nAngle==900) { if (nAngle==900) {
AddOpt( ESCHER_Prop_txflTextFlow, 1 ); AddOpt( ESCHER_Prop_txflTextFlow, ESCHER_txflBtoT );
bSuppressRotation=true;
}
if (nAngle==1800) {
AddOpt( ESCHER_Prop_txflTextFlow, 2 );
bSuppressRotation=true;
} }
if (nAngle==2700) { if (nAngle==2700) {
AddOpt( ESCHER_Prop_txflTextFlow, 3 ); AddOpt( ESCHER_Prop_txflTextFlow, ESCHER_txflTtoBA );
bSuppressRotation=true;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment