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
b73dec8a
Kaydet (Commit)
b73dec8a
authored
Eyl 12, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: rhbz#1006850 crash in SwCommentRuler::GetCommentControlRegion
Change-Id: Ic846da3b22391d724da6f8df94dd771e89d2efb4
üst
e457724d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
swruler.cxx
sw/source/ui/misc/swruler.cxx
+7
-0
No files found.
sw/source/ui/misc/swruler.cxx
Dosyayı görüntüle @
b73dec8a
...
@@ -247,6 +247,13 @@ void SwCommentRuler::UpdateCommentHelpText()
...
@@ -247,6 +247,13 @@ void SwCommentRuler::UpdateCommentHelpText()
Rectangle
SwCommentRuler
::
GetCommentControlRegion
()
Rectangle
SwCommentRuler
::
GetCommentControlRegion
()
{
{
SwPostItMgr
*
pPostItMgr
=
mpViewShell
->
GetPostItMgr
();
SwPostItMgr
*
pPostItMgr
=
mpViewShell
->
GetPostItMgr
();
//rhbz#1006850 When the SwPostItMgr ctor is called from SwView::SwView it
//triggers an update of the uiview, but the result of the ctor hasn't been
//set into the mpViewShell yet, so GetPostItMgr is temporarily still NULL
if
(
!
pPostItMgr
)
return
Rectangle
();
//FIXME When the page width is larger then screen, the ruler is misplaced by one pixel
//FIXME When the page width is larger then screen, the ruler is misplaced by one pixel
long
nLeft
=
GetWinOffset
()
+
GetPageOffset
()
+
mpSwWin
->
LogicToPixel
(
Size
(
GetPageWidth
(),
0
)).
Width
();
long
nLeft
=
GetWinOffset
()
+
GetPageOffset
()
+
mpSwWin
->
LogicToPixel
(
Size
(
GetPageWidth
(),
0
)).
Width
();
long
nTop
=
0
+
4
;
// Ruler::ImplDraw uses RULER_OFF (value: 3px) as offset, and Ruler::ImplFormat adds one extra pixel
long
nTop
=
0
+
4
;
// Ruler::ImplDraw uses RULER_OFF (value: 3px) as offset, and Ruler::ImplFormat adds one extra pixel
...
...
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