Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
343e405f
Kaydet (Commit)
343e405f
authored
Kas 30, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#66668 - FILESAVE: Saving an XLSX file freezes Calc
Change-Id: I7abbb1cc5056f33458257afe28ed933e2d3c378d
üst
b8627ad4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
8 deletions
+51
-8
document.hxx
sc/inc/document.hxx
+1
-1
xeescher.cxx
sc/source/filter/excel/xeescher.cxx
+50
-7
No files found.
sc/inc/document.hxx
Dosyayı görüntüle @
343e405f
...
...
@@ -693,7 +693,7 @@ public:
void
SetPendingRowHeights
(
SCTAB
nTab
,
bool
bSet
);
SC_DLLPUBLIC
void
SetLayoutRTL
(
SCTAB
nTab
,
bool
bRTL
);
SC_DLLPUBLIC
bool
IsLayoutRTL
(
SCTAB
nTab
)
const
;
bool
IsNegativePage
(
SCTAB
nTab
)
const
;
SC_DLLPUBLIC
bool
IsNegativePage
(
SCTAB
nTab
)
const
;
SC_DLLPUBLIC
void
SetScenario
(
SCTAB
nTab
,
bool
bFlag
);
SC_DLLPUBLIC
bool
IsScenario
(
SCTAB
nTab
)
const
;
SC_DLLPUBLIC
void
GetScenarioData
(
SCTAB
nTab
,
OUString
&
rComment
,
...
...
sc/source/filter/excel/xeescher.cxx
Dosyayı görüntüle @
343e405f
...
...
@@ -159,15 +159,15 @@ static void lcl_WriteAnchorVertex( sax_fastparser::FSHelperPtr rComments, Rectan
static
void
lcl_GetFromTo
(
const
XclExpRoot
&
rRoot
,
const
Rectangle
&
aRect
,
sal_Int32
nTab
,
Rectangle
&
aFrom
,
Rectangle
&
aTo
)
{
bool
bTo
=
false
;
sal_Int32
nCol
=
0
,
nRow
=
0
;
sal_Int32
nColOff
=
0
,
nRowOff
=
0
;
while
(
true
)
const
bool
bRTL
=
rRoot
.
GetDocRef
().
IsNegativePage
(
nTab
);
if
(
!
bRTL
)
{
Rectangle
r
=
rRoot
.
GetDocRef
().
GetMMRect
(
nCol
,
nRow
,
nCol
,
nRow
,
nTab
);
if
(
!
bTo
)
while
(
true
)
{
Rectangle
r
=
rRoot
.
GetDocRef
().
GetMMRect
(
nCol
,
nRow
,
nCol
,
nRow
,
nTab
);
if
(
r
.
Left
()
<=
aRect
.
Left
()
)
{
nCol
++
;
...
...
@@ -182,11 +182,38 @@ static void lcl_GetFromTo( const XclExpRoot& rRoot, const Rectangle &aRect, sal_
{
aFrom
=
Rectangle
(
nCol
-
1
,
static_cast
<
long
>
(
HMM2XL
(
nColOff
)),
nRow
-
1
,
static_cast
<
long
>
(
HMM2XL
(
nRowOff
))
);
b
To
=
true
;
b
reak
;
}
}
if
(
bTo
)
}
else
{
while
(
true
)
{
Rectangle
r
=
rRoot
.
GetDocRef
().
GetMMRect
(
nCol
,
nRow
,
nCol
,
nRow
,
nTab
);
if
(
r
.
Left
()
>=
aRect
.
Left
()
)
{
nCol
++
;
nColOff
=
r
.
Left
()
-
aRect
.
Left
();
}
if
(
r
.
Top
()
<=
aRect
.
Top
()
)
{
nRow
++
;
nRowOff
=
aRect
.
Top
()
-
r
.
Top
();
}
if
(
r
.
Left
()
<
aRect
.
Left
()
&&
r
.
Top
()
>
aRect
.
Top
()
)
{
aFrom
=
Rectangle
(
nCol
-
1
,
static_cast
<
long
>
(
HMM2XL
(
nColOff
)),
nRow
-
1
,
static_cast
<
long
>
(
HMM2XL
(
nRowOff
))
);
break
;
}
}
}
if
(
!
bRTL
)
{
while
(
true
)
{
Rectangle
r
=
rRoot
.
GetDocRef
().
GetMMRect
(
nCol
,
nRow
,
nCol
,
nRow
,
nTab
);
if
(
r
.
Right
()
<
aRect
.
Right
()
)
nCol
++
;
if
(
r
.
Bottom
()
<
aRect
.
Bottom
()
)
...
...
@@ -199,7 +226,23 @@ static void lcl_GetFromTo( const XclExpRoot& rRoot, const Rectangle &aRect, sal_
}
}
}
return
;
else
{
while
(
true
)
{
Rectangle
r
=
rRoot
.
GetDocRef
().
GetMMRect
(
nCol
,
nRow
,
nCol
,
nRow
,
nTab
);
if
(
r
.
Right
()
>=
aRect
.
Right
()
)
nCol
++
;
if
(
r
.
Bottom
()
<
aRect
.
Bottom
()
)
nRow
++
;
if
(
r
.
Right
()
<
aRect
.
Right
()
&&
r
.
Bottom
()
>=
aRect
.
Bottom
()
)
{
aTo
=
Rectangle
(
nCol
,
static_cast
<
long
>
(
HMM2XL
(
r
.
Left
()
-
aRect
.
Right
()
)),
nRow
,
static_cast
<
long
>
(
HMM2XL
(
aRect
.
Bottom
()
-
r
.
Top
()
)));
break
;
}
}
}
}
// Escher client anchor =======================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment