summaryrefslogtreecommitdiff
path: root/svx/source/dialog/frmsel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/frmsel.cxx')
-rw-r--r--svx/source/dialog/frmsel.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/dialog/frmsel.cxx b/svx/source/dialog/frmsel.cxx
index 3a25bb1c2487..9aace5087c58 100644
--- a/svx/source/dialog/frmsel.cxx
+++ b/svx/source/dialog/frmsel.cxx
@@ -878,14 +878,17 @@ bool FrameSelector::GetVisibleWidth( long& rnWidth, SvxBorderStyle& rnStyle ) co
const SvxBorderLine& rStyle = (*aIt)->GetCoreStyle();
bool bFound = true;
for( ++aIt; bFound && aIt.Is(); ++aIt )
+ {
bFound =
(rStyle.GetWidth() == (*aIt)->GetCoreStyle().GetWidth()) &&
- (rStyle.GetStyle() == (*aIt)->GetCoreStyle().GetStyle());
+ (rStyle.GetSvxBorderStyle() ==
+ (*aIt)->GetCoreStyle().GetSvxBorderStyle());
+ }
if( bFound )
{
rnWidth = rStyle.GetWidth();
- rnStyle = rStyle.GetStyle();
+ rnStyle = rStyle.GetSvxBorderStyle();
}
return bFound;
}
@@ -948,7 +951,7 @@ void FrameSelector::SelectAllVisibleBorders( bool bSelect )
void FrameSelector::SetStyleToSelection( long nWidth, SvxBorderStyle nStyle )
{
- mxImpl->maCurrStyle.SetStyle( nStyle );
+ mxImpl->maCurrStyle.SetSvxBorderStyle( nStyle );
mxImpl->maCurrStyle.SetWidth( nWidth );
for( SelFrameBorderIter aIt( mxImpl->maEnabBorders ); aIt.Is(); ++aIt )
mxImpl->SetBorderState( **aIt, FRAMESTATE_SHOW );