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
db611a3b
Kaydet (Commit)
db611a3b
authored
Haz 19, 2002
tarafından
Peter Burow
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix: #100391# SetTabs() safe against GPF
üst
095c4397
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
simptabl.cxx
svx/source/dialog/simptabl.cxx
+16
-18
No files found.
svx/source/dialog/simptabl.cxx
Dosyayı görüntüle @
db611a3b
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: simptabl.cxx,v $
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
* last change: $Author: pb $ $Date: 200
1-07-10 10:27:34
$
* last change: $Author: pb $ $Date: 200
2-06-19 07:39:27
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -223,26 +223,24 @@ void SvxSimpleTable::SetTabs()
{
SvTabListBox
::
SetTabs
();
USHORT
nPrivTabCount
=
TabCount
();
USHORT
nPos
=
0
;
USHORT
nNewSize
=
(
USHORT
)
GetTab
(
0
);
if
(
nPrivTabCount
)
USHORT
nPrivTabCount
=
TabCount
();
if
(
nPrivTabCount
)
{
if
(
nPrivTabCount
>
aHeaderBar
.
GetItemCount
()
)
nPrivTabCount
=
aHeaderBar
.
GetItemCount
();
if
(
nPrivTabCount
>
aHeaderBar
.
GetItemCount
()
)
nPrivTabCount
=
aHeaderBar
.
GetItemCount
();
USHORT
i
;
for
(
i
=
1
;
i
<
nPrivTabCount
;
i
++
)
USHORT
i
,
nNewSize
=
(
USHORT
)
GetTab
(
0
),
nPos
=
0
;
for
(
i
=
1
;
i
<
nPrivTabCount
;
++
i
)
{
nNewSize
=
GetTab
(
i
)
-
nPos
;
aHeaderBar
.
SetItemSize
(
i
,
nNewSize
);
nPos
=
(
USHORT
)
GetTab
(
i
);
nNewSize
=
GetTab
(
i
)
-
nPos
;
aHeaderBar
.
SetItemSize
(
i
,
nNewSize
);
nPos
=
(
USHORT
)
GetTab
(
i
);
}
aHeaderBar
.
SetItemSize
(
i
,
HEADERBAR_FULLSIZE
);
// Da fuer letzten Eintrag kein Tab
aHeaderBar
.
SetItemSize
(
i
,
HEADERBAR_FULLSIZE
);
// because no tab for last entry
}
}
void
SvxSimpleTable
::
SetTabs
(
long
*
pTabs
,
MapUnit
eMapUnit
)
{
SvTabListBox
::
SetTabs
(
pTabs
,
eMapUnit
);
...
...
@@ -252,9 +250,9 @@ void SvxSimpleTable::Paint( const Rectangle& rRect )
{
SvTabListBox
::
Paint
(
rRect
);
USHORT
nPrivTabCount
=
TabCount
();
USHORT
nPos
=
0
;
USHORT
nNewSize
=
(
USHORT
)
GetTab
(
0
)
;
USHORT
nPrivTabCount
=
TabCount
();
USHORT
nPos
=
0
;
USHORT
nNewSize
=
(
nPrivTabCount
>
0
)
?
(
USHORT
)
GetTab
(
0
)
:
0
;
long
nOffset
=-
GetXOffset
();
nOldPos
=
nOffset
;
...
...
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