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
a012483e
Kaydet (Commit)
a012483e
authored
Kas 04, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
small optimization, don't get selection unless it gets used
Change-Id: Ibc359a8dbb26ef066dc43535eaf9835c4c7e9314
üst
5d3cec6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
inputhdl.cxx
sc/source/ui/app/inputhdl.cxx
+13
-6
No files found.
sc/source/ui/app/inputhdl.cxx
Dosyayı görüntüle @
a012483e
...
...
@@ -2115,20 +2115,27 @@ static void lcl_SetTopSelection( EditView* pEditView, ESelection& rSel )
void
ScInputHandler
::
SyncViews
(
EditView
*
pSourceView
)
{
ESelection
aSel
;
if
(
pSourceView
)
{
aSel
=
pSourceView
->
GetSelection
()
;
bool
bSelectionForTopView
=
false
;
if
(
pTopView
&&
pTopView
!=
pSourceView
)
pTopView
->
SetSelection
(
aSel
);
bSelectionForTopView
=
true
;
bool
bSelectionForTableView
=
false
;
if
(
pTableView
&&
pTableView
!=
pSourceView
)
lcl_SetTopSelection
(
pTableView
,
aSel
);
bSelectionForTableView
=
true
;
if
(
bSelectionForTopView
||
bSelectionForTableView
)
{
ESelection
aSel
(
pSourceView
->
GetSelection
());
if
(
bSelectionForTopView
)
pTopView
->
SetSelection
(
aSel
);
if
(
bSelectionForTableView
)
lcl_SetTopSelection
(
pTableView
,
aSel
);
}
}
// Only sync selection from topView if we are actually editiing there
else
if
(
pTopView
&&
pTableView
)
{
aSel
=
pTopView
->
GetSelection
(
);
ESelection
aSel
(
pTopView
->
GetSelection
()
);
lcl_SetTopSelection
(
pTableView
,
aSel
);
}
}
...
...
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