Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.3

Bug #8701 Problems with the method setTextRotation()
Submitted: 2006-09-14 10:26 UTC Modified: 2009-08-11 18:26 UTC
From: mjansen at databay dot de Assigned: progi1984
Status: Closed Package: Spreadsheet_Excel_Writer
PHP Version: 4.3.1 OS: Linux/SuSE
Roadmaps: (Not assigned)    
Subscription  



Patch Bug8701 Revisions
Revision 2009-08-05 13:22 UTC
Developer progi1984
 
Download patch

This patch is obsolete

Obsoleted by patches:

Index: Spreadsheet/Excel/Writer/Format.php
===================================================================
--- Spreadsheet/Excel/Writer/Format.php	(révision 286827)
+++ Spreadsheet/Excel/Writer/Format.php	(copie de travail)
@@ -429,7 +429,7 @@
 
             $header      = pack("vv",       $record, $length);
 
-            $rotation      = 0x00;
+            $rotation      = $this->_rotation;
             $biff8_options = 0x00;
             $data  = pack("vvvC", $ifnt, $ifmt, $style, $align);
             $data .= pack("CCC", $rotation, $biff8_options, $used_attrib);
@@ -996,13 +996,25 @@
                 $this->_rotation = 0;
                 break;
             case 90:
+            	if ($this->_BIFF_version == 0x0500) {
                 $this->_rotation = 3;
+            	} elseif ($this->_BIFF_version == 0x0600) {
+            	    $this->_rotation = 180;
+            	}
                 break;
             case 270:
+            	if ($this->_BIFF_version == 0x0500) {
                 $this->_rotation = 2;
+				} elseif ($this->_BIFF_version == 0x0600) {
+				    $this->_rotation = 90;
+				}
                 break;
             case -1:
+            	if ($this->_BIFF_version == 0x0500) {
                 $this->_rotation = 1;
+				} elseif ($this->_BIFF_version == 0x0600) {
+				    $this->_rotation = 255;
+				}
                 break;
             default :
                 return $this->raiseError("Invalid value for angle.".
@@ -1099,4 +1111,4 @@
         $this->_font_name = $font_family;
     }
 }
-?>
+?>
\ Pas de fin de ligne à la fin du fichier