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
355c3cbb
Kaydet (Commit)
355c3cbb
authored
Haz 26, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix invalid memory access in chart tests
Change-Id: I056101d146c939ff958c83efc57fd110e8d52509
üst
d781e874
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
4 deletions
+36
-4
ChartView.hxx
chart2/inc/ChartView.hxx
+1
-0
ChartModel.cxx
chart2/source/model/main/ChartModel.cxx
+2
-0
ChartView.cxx
chart2/source/view/main/ChartView.cxx
+33
-4
No files found.
chart2/inc/ChartView.hxx
Dosyayı görüntüle @
355c3cbb
...
...
@@ -197,6 +197,7 @@ public:
std
::
exception
)
SAL_OVERRIDE
;
void
setViewDirty
();
void
updateOpenGLWindow
();
private
:
//methods
ChartView
();
...
...
chart2/source/model/main/ChartModel.cxx
Dosyayı görüntüle @
355c3cbb
...
...
@@ -1429,6 +1429,8 @@ void ChartModel::update()
mpChartView
->
setViewDirty
();
mpChartView
->
update
();
if
(
mpChartView
)
mpChartView
->
updateOpenGLWindow
();
}
...
...
chart2/source/view/main/ChartView.cxx
Dosyayı görüntüle @
355c3cbb
...
...
@@ -165,22 +165,25 @@ public:
virtual
void
mouseDragMove
(
const
Point
&
rBegin
,
const
Point
&
rEnd
,
sal_uInt16
nButton
)
SAL_OVERRIDE
;
virtual
void
scroll
(
long
nDelta
)
SAL_OVERRIDE
;
virtual
void
contextDestroyed
()
SAL_OVERRIDE
;
void
updateOpenGLWindow
();
private
:
ChartView
*
mpView
;
bool
mbContextDestroyed
;
OpenGLWindow
*
mpWindow
;
};
GL2DRenderer
::
GL2DRenderer
(
ChartView
*
pView
)
:
mpView
(
pView
),
mbContextDestroyed
(
false
)
mbContextDestroyed
(
false
),
mpWindow
(
mpView
->
mrChartModel
.
getOpenGLWindow
())
{
}
GL2DRenderer
::~
GL2DRenderer
()
{
OpenGLWindow
*
pWindow
=
mpView
->
mrChartModel
.
getOpenGLWindow
();
if
(
!
mbContextDestroyed
&&
pWindow
)
pWindow
->
setRenderer
(
NULL
);
if
(
!
mbContextDestroyed
&&
mpWindow
)
mpWindow
->
setRenderer
(
NULL
);
}
void
GL2DRenderer
::
update
()
...
...
@@ -205,6 +208,27 @@ void GL2DRenderer::contextDestroyed()
mbContextDestroyed
=
true
;
}
void
GL2DRenderer
::
updateOpenGLWindow
()
{
if
(
mbContextDestroyed
)
return
;
OpenGLWindow
*
pWindow
=
mpView
->
mrChartModel
.
getOpenGLWindow
();
if
(
pWindow
!=
mpWindow
)
{
if
(
mpWindow
)
{
mpWindow
->
setRenderer
(
NULL
);
}
if
(
pWindow
)
{
pWindow
->
setRenderer
(
this
);
}
}
mpWindow
=
pWindow
;
}
const
uno
::
Sequence
<
sal_Int8
>&
ExplicitValueProvider
::
getUnoTunnelId
()
{
return
theExplicitValueProviderUnoTunnelId
::
get
().
getSeq
();
...
...
@@ -3256,6 +3280,11 @@ void ChartView::createShapes3D()
m_pGL3DPlotter
->
render
();
}
void
ChartView
::
updateOpenGLWindow
()
{
mp2DRenderer
->
updateOpenGLWindow
();
}
}
//namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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