@@ -103,30 +103,30 @@ void JuiControl::SetBackground(const std::string& drawable)
103
103
void JuiControl::SetPosition (const JPoint2I& point)
104
104
{
105
105
m_rcBounds.position = point;
106
- if (m_pLayoutParam != NULL )
107
- m_pLayoutParam->UpdatePos (m_pParent, m_rcBounds);
106
+ if (m_pLayoutParam != NULL && m_pParent != NULL )
107
+ m_pLayoutParam->UpdatePos (m_pParent-> GetExtent () , m_rcBounds);
108
108
}
109
109
110
110
void JuiControl::SetPosition ( int x, int y )
111
111
{
112
112
m_rcBounds.position .x = x;
113
113
m_rcBounds.position .y = y;
114
- if (m_pLayoutParam != NULL )
115
- m_pLayoutParam->UpdatePos (m_pParent, m_rcBounds);
114
+ if (m_pLayoutParam != NULL && m_pParent != NULL )
115
+ m_pLayoutParam->UpdatePos (m_pParent-> GetExtent () , m_rcBounds);
116
116
}
117
117
118
118
void JuiControl::SetPosX (int x)
119
119
{
120
120
m_rcBounds.position .x = x;
121
- if (m_pLayoutParam != NULL )
122
- m_pLayoutParam->UpdatePos (m_pParent, m_rcBounds);
121
+ if (m_pLayoutParam != NULL && m_pParent != NULL )
122
+ m_pLayoutParam->UpdatePos (m_pParent-> GetExtent () , m_rcBounds);
123
123
}
124
124
125
125
void JuiControl::SetPosY (int y)
126
126
{
127
127
m_rcBounds.position .y = y;
128
- if (m_pLayoutParam != NULL )
129
- m_pLayoutParam->UpdatePos (m_pParent, m_rcBounds);
128
+ if (m_pLayoutParam != NULL && m_pParent != NULL )
129
+ m_pLayoutParam->UpdatePos (m_pParent-> GetExtent () , m_rcBounds);
130
130
}
131
131
132
132
bool JuiControl::IsPointIn ( const JPoint2I& pt )
0 commit comments