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
1ccab525
Kaydet (Commit)
1ccab525
authored
Eki 22, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix lifetime problems of ChartView
Change-Id: I99b24b026c50a05f8f3803348c76277e29a45ec7
üst
7070318e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
ChartModel.hxx
chart2/inc/ChartModel.hxx
+1
-0
ChartModel.cxx
chart2/source/model/main/ChartModel.cxx
+6
-2
DummyXShape.cxx
chart2/source/view/main/DummyXShape.cxx
+2
-1
No files found.
chart2/inc/ChartModel.hxx
Dosyayı görüntüle @
1ccab525
...
...
@@ -120,6 +120,7 @@ private:
sal_Int32
m_nInLoad
;
sal_Bool
volatile
m_bUpdateNotificationsPending
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XInterface
>
xChartView
;
// for the ref count
ChartView
*
mpChartView
;
OUString
m_aResource
;
...
...
chart2/source/model/main/ChartModel.cxx
Dosyayı görüntüle @
1ccab525
...
...
@@ -185,8 +185,6 @@ ChartModel::~ChartModel()
OSL_TRACE
(
"ChartModel: DTOR called"
);
if
(
m_xOldModelAgg
.
is
())
m_xOldModelAgg
->
setDelegator
(
NULL
);
delete
mpChartView
;
}
void
SAL_CALL
ChartModel
::
initialize
(
const
Sequence
<
Any
>&
/*rArguments*/
)
...
...
@@ -1199,7 +1197,10 @@ Reference< uno::XInterface > SAL_CALL ChartModel::createInstance( const OUString
case
SERVICE_MARKER_TABLE
:
{
if
(
!
mpChartView
)
{
mpChartView
=
new
ChartView
(
m_xContext
,
*
this
);
xChartView
=
static_cast
<
::
cppu
::
OWeakObject
*
>
(
mpChartView
);
}
return
mpChartView
->
createInstance
(
rServiceSpecifier
);
}
break
;
...
...
@@ -1210,7 +1211,10 @@ Reference< uno::XInterface > SAL_CALL ChartModel::createInstance( const OUString
else
if
(
rServiceSpecifier
==
CHART_VIEW_SERVICE_NAME
)
{
if
(
!
mpChartView
)
{
mpChartView
=
new
ChartView
(
m_xContext
,
*
this
);
xChartView
=
static_cast
<
::
cppu
::
OWeakObject
*
>
(
mpChartView
);
}
return
static_cast
<
::
cppu
::
OWeakObject
*
>
(
mpChartView
);
}
...
...
chart2/source/view/main/DummyXShape.cxx
Dosyayı görüntüle @
1ccab525
...
...
@@ -680,6 +680,7 @@ int oglErrorHandler( unx::Display* /*dpy*/, unx::XErrorEvent* /*evnt*/ )
bool
DummyChart
::
initOpengl
()
{
initWindow
();
mpWindow
->
setPosSizePixel
(
0
,
0
,
0
,
0
);
GLWin
.
Width
=
0
;
GLWin
.
Height
=
0
;
...
...
@@ -804,7 +805,7 @@ DummyChart::DummyChart():
void
DummyChart
::
createGLContext
()
{
initOpengl
();
}
void
DummyChart
::
setPosition
(
const
awt
::
Point
&
aPosition
)
...
...
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