fit-list-to-size.diff: Shrink font automatically when text overflows.

i#94086

Scale-font-down if typing text in Impress and the text box becomes too small.
This commit is contained in:
Thorsten Behrens
2010-09-17 10:11:28 +02:00
committed by Jan Holesovsky
parent 261276ba32
commit b7628798ec
2 changed files with 2 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ namespace svx
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
//DBG_UNHANDLED_EXCEPTION();
}
}

View File

@@ -451,8 +451,7 @@ BOOL SvxTextAttrPage::FillItemSet( SfxItemSet& rAttrs)
default: ; //prevent warning
DBG_ERROR( "svx::SvxTextAttrPage::FillItemSet(), unhandled state!" );
case STATE_NOCHECK: eFTS = SDRTEXTFIT_NONE; break;
//case STATE_CHECK: eFTS = SDRTEXTFIT_RESIZEATTR; break;
case STATE_CHECK: eFTS = SDRTEXTFIT_PROPORTIONAL; break;
case STATE_CHECK: eFTS = SDRTEXTFIT_AUTOFIT; break;
}
rAttrs.Put( SdrTextFitToSizeTypeItem( eFTS ) );
}