Kaydet (Commit) 02eff9d8 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

fix crasher in ValueSet

Change-Id: I846ebbf70f90c417fafd8cba8148c88f70d0c398
üst d85412e0
...@@ -2264,8 +2264,12 @@ long ValueSet::GetScrollWidth() const ...@@ -2264,8 +2264,12 @@ long ValueSet::GetScrollWidth() const
{ {
if (GetStyle() & WB_VSCROLL) if (GetStyle() & WB_VSCROLL)
{ {
const_cast<ValueSet*>(this)->Invalidate(); ValueSet* pValueSet = const_cast<ValueSet*>(this);
const_cast<ValueSet*>(this)->ImplInitScrollBar(); if (!mxScrollBar)
{
pValueSet->ImplInitScrollBar();
}
pValueSet->Invalidate();
return mxScrollBar->GetSizePixel().Width() + SCRBAR_OFFSET; return mxScrollBar->GetSizePixel().Width() + SCRBAR_OFFSET;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment