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
eb433f83
Kaydet (Commit)
eb433f83
authored
Nis 10, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: tdf#106078 get bounding box of commented region for gtk3 tooltips
Change-Id: I4fdc1f471c6c191be9c7c611926bd2b5b2b41308
üst
94e6a847
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
crstrvl.cxx
sw/source/core/crsr/crstrvl.cxx
+19
-1
No files found.
sw/source/core/crsr/crstrvl.cxx
Dosyayı görüntüle @
eb433f83
...
@@ -1439,12 +1439,18 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
...
@@ -1439,12 +1439,18 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
if
(
pFieldRect
&&
nullptr
!=
(
pFrame
=
pTextNd
->
getLayoutFrame
(
GetLayout
(),
&
aPt
)
)
)
if
(
pFieldRect
&&
nullptr
!=
(
pFrame
=
pTextNd
->
getLayoutFrame
(
GetLayout
(),
&
aPt
)
)
)
{
{
//get bounding box of range
SwRect
aStart
;
SwRect
aStart
;
SwPosition
aStartPos
(
*
pTextNd
,
nSt
);
SwPosition
aStartPos
(
*
pTextNd
,
nSt
);
pFrame
->
GetCharRect
(
aStart
,
aStartPos
,
&
aTmpState
);
pFrame
->
GetCharRect
(
aStart
,
aStartPos
,
&
aTmpState
);
SwRect
aEnd
;
SwRect
aEnd
;
SwPosition
aEndPos
(
*
pTextNd
,
nEnd
);
SwPosition
aEndPos
(
*
pTextNd
,
nEnd
);
pFrame
->
GetCharRect
(
aEnd
,
aEndPos
,
&
aTmpState
);
pFrame
->
GetCharRect
(
aEnd
,
aEndPos
,
&
aTmpState
);
if
(
aStart
.
Top
()
!=
aEnd
.
Top
()
||
aStart
.
Bottom
()
!=
aEnd
.
Bottom
())
{
aStart
.
Left
(
pFrame
->
Frame
().
Left
());
aEnd
.
Right
(
pFrame
->
Frame
().
Right
());
}
*
pFieldRect
=
aStart
.
Union
(
aEnd
);
*
pFieldRect
=
aStart
.
Union
(
aEnd
);
}
}
}
}
...
@@ -1462,7 +1468,19 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
...
@@ -1462,7 +1468,19 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
bRet
=
true
;
bRet
=
true
;
if
(
pFieldRect
&&
nullptr
!=
(
pFrame
=
pTextNd
->
getLayoutFrame
(
GetLayout
(),
&
aPt
)
)
)
if
(
pFieldRect
&&
nullptr
!=
(
pFrame
=
pTextNd
->
getLayoutFrame
(
GetLayout
(),
&
aPt
)
)
)
pFrame
->
GetCharRect
(
*
pFieldRect
,
aPos
,
&
aTmpState
);
{
//get bounding box of range
SwRect
aStart
;
pFrame
->
GetCharRect
(
aStart
,
*
pRedl
->
Start
(),
&
aTmpState
);
SwRect
aEnd
;
pFrame
->
GetCharRect
(
aEnd
,
*
pRedl
->
End
(),
&
aTmpState
);
if
(
aStart
.
Top
()
!=
aEnd
.
Top
()
||
aStart
.
Bottom
()
!=
aEnd
.
Bottom
())
{
aStart
.
Left
(
pFrame
->
Frame
().
Left
());
aEnd
.
Right
(
pFrame
->
Frame
().
Right
());
}
*
pFieldRect
=
aStart
.
Union
(
aEnd
);
}
}
}
}
}
}
}
...
...
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