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
59df2942
Kaydet (Commit)
59df2942
authored
Kas 28, 2011
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
correct gluepoint sizing to match new 9x9 glue-points (thanks to Astron)
üst
56a67045
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
svdglue.cxx
svx/source/svdraw/svdglue.cxx
+7
-4
No files found.
svx/source/svdraw/svdglue.cxx
Dosyayı görüntüle @
59df2942
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include <svx/svdobj.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdtrans.hxx>
#include <svx/svdtrans.hxx>
////////////////////////////////////////////////////////////////////////////////////////////////////
static
const
Size
aGlueHalfSize
(
4
,
4
);
void
SdrGluePoint
::
SetReallyAbsolute
(
bool
bOn
,
const
SdrObject
&
rObj
)
void
SdrGluePoint
::
SetReallyAbsolute
(
bool
bOn
,
const
SdrObject
&
rObj
)
{
{
...
@@ -250,10 +250,13 @@ void SdrGluePoint::Invalidate(Window& rWin, const SdrObject* pObj) const
...
@@ -250,10 +250,13 @@ void SdrGluePoint::Invalidate(Window& rWin, const SdrObject* pObj) const
Point
aPt
(
pObj
!=
NULL
?
GetAbsolutePos
(
*
pObj
)
:
GetPos
());
Point
aPt
(
pObj
!=
NULL
?
GetAbsolutePos
(
*
pObj
)
:
GetPos
());
aPt
=
rWin
.
LogicToPixel
(
aPt
);
aPt
=
rWin
.
LogicToPixel
(
aPt
);
rWin
.
EnableMapMode
(
sal_False
);
rWin
.
EnableMapMode
(
sal_False
);
long
x
=
aPt
.
X
(),
y
=
aPt
.
Y
();
// Size fixed to 7 pixels for now
Size
aSiz
(
aGlueHalfSize
);
Rectangle
aRect
(
aPt
.
X
()
-
aSiz
.
Width
(),
aPt
.
Y
()
-
aSiz
.
Height
(),
aPt
.
X
()
+
aSiz
.
Width
(),
aPt
.
Y
()
+
aSiz
.
Height
());
// do not erase background, that causes flicker (!)
// do not erase background, that causes flicker (!)
rWin
.
Invalidate
(
Rectangle
(
Point
(
x
-
3
,
y
-
3
),
Point
(
x
+
3
,
y
+
3
))
,
INVALIDATE_NOERASE
);
rWin
.
Invalidate
(
aRect
,
INVALIDATE_NOERASE
);
rWin
.
EnableMapMode
(
bMapMerk
);
rWin
.
EnableMapMode
(
bMapMerk
);
}
}
...
@@ -261,7 +264,7 @@ void SdrGluePoint::Invalidate(Window& rWin, const SdrObject* pObj) const
...
@@ -261,7 +264,7 @@ void SdrGluePoint::Invalidate(Window& rWin, const SdrObject* pObj) const
bool
SdrGluePoint
::
IsHit
(
const
Point
&
rPnt
,
const
OutputDevice
&
rOut
,
const
SdrObject
*
pObj
)
const
bool
SdrGluePoint
::
IsHit
(
const
Point
&
rPnt
,
const
OutputDevice
&
rOut
,
const
SdrObject
*
pObj
)
const
{
{
Point
aPt
(
pObj
!=
NULL
?
GetAbsolutePos
(
*
pObj
)
:
GetPos
());
Point
aPt
(
pObj
!=
NULL
?
GetAbsolutePos
(
*
pObj
)
:
GetPos
());
Size
aSiz
=
rOut
.
PixelToLogic
(
Size
(
3
,
3
)
);
Size
aSiz
=
rOut
.
PixelToLogic
(
aGlueHalfSize
);
Rectangle
aRect
(
aPt
.
X
()
-
aSiz
.
Width
(),
aPt
.
Y
()
-
aSiz
.
Height
(),
aPt
.
X
()
+
aSiz
.
Width
(),
aPt
.
Y
()
+
aSiz
.
Height
());
Rectangle
aRect
(
aPt
.
X
()
-
aSiz
.
Width
(),
aPt
.
Y
()
-
aSiz
.
Height
(),
aPt
.
X
()
+
aSiz
.
Width
(),
aPt
.
Y
()
+
aSiz
.
Height
());
return
aRect
.
IsInside
(
rPnt
);
return
aRect
.
IsInside
(
rPnt
);
}
}
...
...
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