~ubuntu-branches/ubuntu/karmic/openoffice.org-l10n/karmic

« back to all changes in this revision

Viewing changes to ooo-build/patches/src680/sc-object-row-position.diff

  • Committer: Bazaar Package Importer
  • Author(s): Chris Cheney
  • Date: 2008-01-08 23:17:08 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20080108231708-7f5yc4h021ikwgyz
Tags: 1:2.3.1-3ubuntu1
* Copy of the openoffice.org source.
  - debian/changelog: Change source name.
  - debian/control.in: Change source name.
  - debian/control: Regenerate control file.

* Resynchronise with Debian (r989). Remaining changes:
  - debian/broffice.org.postrm.in:
    . Change diversions to ubuntu bitmap filenames.
  - debian/broffice.org.preinst.in:
    . Change diversions to ubuntu bitmap filenames.
  - debian/control.2.in:
    . Add file for Ubuntu.
  - debian/control.in:
    . Change maintainer line.
    . Use imagemagick instead of graphicsmagick.
    . Change bzr repo location.
    . Use java-runtime-depends variable for java dependencies.
    . Make openoffice.org-core Depends on openoffice.org-hyphenation.
    . Add package openoffice.org-style-human.
    . Various other minor Ubuntu changes.
  - debian/control.l10n.in:
    . Add file for Ubuntu.
  - debian/control.lang.in:
    . Add L10N_COMMON to Depends.
  - debian/control.mozilla.in:
    . Add Xb-Npp-xxx tags according to "firefox distro add-on suport" spec.
  - debian/control.ubuntu.in:
    . Add file for Ubuntu.
  - debian/deppackage.postinst.in:
    . Add file for Ubuntu.
  - debian/module-po.map:
    . Add file for Ubuntu.
  - debian/ooo-build-ubuntu.diff:
    . Various Ubuntu specific changes to ooo-build.
  - debian/rules:
    . Add USE_LZMA_COMPRESS option.
    . Add USE_COMMON_DOCDIR option.
    . Add support to build on lpia.
    . Add support to build l10n as a separate source.
    . Add java-runtime-depends variable for java dependencies.
    . Add support to chmod +x programs in debian dir.
    . Add support to uuencode binary files in ubuntu dir.
    . Add support to Ubuntu specific bitmaps.
    . Use imagemagick instead of graphicsmagick.
    . Add support for openoffice.org-style-human package.
    . Add support for launchpad translations.
    . Various Ubuntu specific changes.
  - debian/scripts/convert2po:
    . Add file for Ubuntu.
  - debian/scripts/fix_image_rgb:
    . Use imagemagick instead of graphicsmagick.
  - debian/scripts/gsifilter.py:
    . Add file for Ubuntu.
  - debian/scripts/splitgsi:
    . Add file for Ubuntu.
  - debian/template.desktop.in:
    . Add NoDisplay=true.
  - ooo-build/configure.in:
    . Added support for Hardy.
  - ooo-build/distro-configs/UbuntuHardy.conf.in:
    . Added support for Hardy.
  - ooo-build/distro-configs/UbuntuHardy64.conf.in:
    . Added support for Hardy.
  - ooo-build/patches/src680/apply:
    . Added support for Hardy.
  - ooo-build/patches/src680/ubuntu-lpi.diff:
    . Updated patch.
  - ubuntu/*
    . Various Ubuntu specific changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: sc/source/core/data/document.cxx
 
2
===================================================================
 
3
RCS file: /cvs/sc/sc/source/core/data/document.cxx,v
 
4
retrieving revision 1.79
 
5
diff -u -p -r1.79 document.cxx
 
6
--- sc/source/core/data/document.cxx    17 Jul 2007 13:32:52 -0000      1.79
 
7
+++ sc/source/core/data/document.cxx    29 Oct 2007 20:26:42 -0000
 
8
@@ -763,6 +810,10 @@ void ScDocument::DeleteRow( SCCOL nStart
 
9
                        ScAddress( nStartCol, nStartRow, nStartTab ),
 
10
                        ScAddress( nEndCol, MAXROW, nEndTab ) ) );
 
11
 
 
12
+       for ( i = nStartTab; i <= nEndTab; i++)
 
13
+               if (pDrawLayer)
 
14
+                       pDrawLayer->DeleteObjectsInArea( i, nStartCol, nStartRow, nEndCol, nStartRow+nSize);
 
15
+
 
16
        if ( ValidRow(nStartRow+nSize) )
 
17
        {
 
18
                UpdateReference( URM_INSDEL, nStartCol, nStartRow+nSize, nStartTab,
 
19
@@ -914,6 +965,10 @@ void ScDocument::DeleteCol(SCROW nStartR
 
20
                        ScAddress( nStartCol, nStartRow, nStartTab ),
 
21
                        ScAddress( MAXCOL, nEndRow, nEndTab ) ) );
 
22
 
 
23
+       for ( i = nStartTab; i <= nEndTab; i++)
 
24
+               if (pDrawLayer)
 
25
+                       pDrawLayer->DeleteObjectsInArea( i, nStartCol, nStartRow, nStartCol+nSize, nEndRow );
 
26
+
 
27
     if ( ValidCol(sal::static_int_cast<SCCOL>(nStartCol+nSize)) )
 
28
        {
 
29
         UpdateReference( URM_INSDEL, sal::static_int_cast<SCCOL>(nStartCol+nSize), nStartRow, nStartTab,
 
30
Index: sc/source/core/data/table2.cxx
 
31
===================================================================
 
32
RCS file: /cvs/sc/sc/source/core/data/table2.cxx,v
 
33
retrieving revision 1.37
 
34
diff -u -p -r1.37 table2.cxx
 
35
--- sc/source/core/data/table2.cxx      27 Feb 2007 12:09:28 -0000      1.37
 
36
+++ sc/source/core/data/table2.cxx      18 Oct 2007 20:46:19 -0000
 
37
@@ -1967,15 +1967,13 @@ BOOL ScTable::SetRowHeightRange( SCROW n
 
38
                {
 
39
                        if (nEndRow-nStartRow < 20)
 
40
             {
 
41
-                // Whether new pixel size will differ from old pixel size in any row.
 
42
-                ScCompressedArrayIterator< SCROW, USHORT> aIter( *pRowHeight,
 
43
-                        nStartRow, nEndRow);
 
44
-                do
 
45
+                for (SCROW nRow = nStartRow; nRow <= nEndRow; ++nRow)
 
46
                 {
 
47
-                    if (*aIter != nNewHeight)
 
48
-                        bChanged = (nNewPix != (long) (*aIter * nPPTY));
 
49
-                } while (!bChanged && aIter.NextRange());
 
50
-                pRowHeight->SetValue( nStartRow, nEndRow, nNewHeight);
 
51
+                    if (!bChanged)
 
52
+                        if (pRowHeight->GetValue( nRow ))
 
53
+                            bChanged = (nNewPix != (long) (pRowHeight->GetValue( nRow ) * nPPTY));
 
54
+                    SetRowHeight( nRow, nNewHeight );
 
55
+                }
 
56
             }
 
57
                        else
 
58
                        {