* GormInternalViewEditor.m

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@36286 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2013-03-06 01:22:16 +00:00
parent 2acd3d425a
commit 187ceaf5e7

View file

@ -681,6 +681,7 @@ static NSImage *horizontalImage;
NSEnumerator *enumerator = [[self selection] objectEnumerator];
id anObject;
NSFont *newFont;
NSUInteger count = 0;
NSDebugLog(@"In %@ changing font for %@",[self className],[self selection]);
while ((anObject = [enumerator nextObject]))
@ -688,6 +689,7 @@ static NSImage *horizontalImage;
if([anObject respondsToSelector: @selector(setTitleFont:)] &&
[anObject respondsToSelector: @selector(setTextFont:)])
{
count++;
newFont = [sender convertFont: [anObject font]];
newFont = [[GormFontViewController sharedGormFontViewController]
convertFont: newFont];
@ -697,6 +699,7 @@ static NSImage *horizontalImage;
else if ([anObject respondsToSelector: @selector(font)] &&
[anObject respondsToSelector: @selector(setFont:)])
{
count++;
newFont = [sender convertFont: [anObject font]];
newFont = [[GormFontViewController sharedGormFontViewController]
convertFont: newFont];
@ -704,6 +707,12 @@ static NSImage *horizontalImage;
}
}
// if the font was changed, mark us as altered...
if(count > 0)
{
[[self document] touch];
}
return;
}
@end