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
9104fbc5
Kaydet (Commit)
9104fbc5
authored
Mar 25, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735475 Logically dead code
Change-Id: I6c1538ac40db97d687f446a8059e51b4a588199e
üst
3cd22c2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
output2.cxx
sc/source/ui/view/output2.cxx
+0
-40
No files found.
sc/source/ui/view/output2.cxx
Dosyayı görüntüle @
9104fbc5
...
...
@@ -3879,46 +3879,6 @@ void ScOutputData::DrawEditStacked(DrawEditParam& rParam)
nEngineWidth
,
nEngineHeight
,
nNeededPixel
,
aAreaParam
.
mbLeftClip
,
aAreaParam
.
mbRightClip
);
if
(
bRepeat
&&
!
aAreaParam
.
mbLeftClip
&&
!
aAreaParam
.
mbRightClip
&&
rParam
.
mpEngine
->
GetParagraphCount
()
==
1
)
{
// First check if twice the space for the formatted text is available
// (otherwise just keep it unchanged).
long
nFormatted
=
nNeededPixel
-
nLeftM
-
nRightM
;
// without margin
long
nAvailable
=
aAreaParam
.
maAlignRect
.
GetWidth
()
-
nLeftM
-
nRightM
;
if
(
nAvailable
>=
2
*
nFormatted
)
{
// "repeat" is handled with unformatted text (for performance reasons)
OUString
aCellStr
=
rParam
.
mpEngine
->
GetText
();
rParam
.
mpEngine
->
SetText
(
aCellStr
);
long
nRepeatSize
=
(
long
)
rParam
.
mpEngine
->
CalcTextWidth
();
if
(
rParam
.
mbPixelToLogic
)
nRepeatSize
=
mpRefDevice
->
LogicToPixel
(
Size
(
nRepeatSize
,
0
)).
Width
();
if
(
pFmtDevice
!=
mpRefDevice
)
++
nRepeatSize
;
if
(
nRepeatSize
>
0
)
{
long
nRepeatCount
=
nAvailable
/
nRepeatSize
;
if
(
nRepeatCount
>
1
)
{
OUString
aRepeated
=
aCellStr
;
for
(
long
nRepeat
=
1
;
nRepeat
<
nRepeatCount
;
nRepeat
++
)
aRepeated
+=
aCellStr
;
rParam
.
mpEngine
->
SetText
(
aRepeated
);
nEngineHeight
=
rParam
.
mpEngine
->
GetTextHeight
();
nEngineWidth
=
(
long
)
rParam
.
mpEngine
->
CalcTextWidth
();
if
(
rParam
.
mbPixelToLogic
)
nNeededPixel
=
mpRefDevice
->
LogicToPixel
(
Size
(
nEngineWidth
,
0
)).
Width
();
else
nNeededPixel
=
nEngineWidth
;
nNeededPixel
+=
nLeftM
+
nRightM
;
}
}
}
}
if
(
rParam
.
mbCellIsValue
&&
(
aAreaParam
.
mbLeftClip
||
aAreaParam
.
mbRightClip
)
)
{
rParam
.
mpEngine
->
SetText
(
OUString
(
"###"
));
...
...
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