summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/source/t602/t602filter.cxx20
1 files changed, 9 insertions, 11 deletions
diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx
index ed582a0659b6..f60a7781e11e 100644
--- a/filter/source/t602/t602filter.cxx
+++ b/filter/source/t602/t602filter.cxx
@@ -535,19 +535,17 @@ void T602ImportFilter::wrtfnt()
void T602ImportFilter::setfnt(fonts fnt,bool mustwrite)
{
- if( fnt == fst.oldfnt &&
- fnt == fst.nowfnt &&
- !mustwrite )
+ if (fnt == fst.oldfnt && fnt == fst.nowfnt && !mustwrite)
fst.nowfnt = standard;
- else
- if (fnt != chngul) fst.nowfnt = fnt;
+ else if (fnt != chngul)
+ fst.nowfnt = fnt;
- if(mustwrite)
- if(fst.oldfnt != fst.nowfnt || fst.olduline != fst.uline) {
- wrtfnt();
- fst.oldfnt = fst.nowfnt;
- fst.olduline = fst.uline;
- }
+ if (mustwrite && (fst.oldfnt != fst.nowfnt || fst.olduline != fst.uline))
+ {
+ wrtfnt();
+ fst.oldfnt = fst.nowfnt;
+ fst.olduline = fst.uline;
+ }
}
unsigned char T602ImportFilter::Readchar602()