mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Remove some extra parameters from debug outputs
OK Fred Kiefer git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e22b248f7e
commit
e097f5d773
3 changed files with 22 additions and 16 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-05-26: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
|
||||
* Source/NSView.m
|
||||
* Source/NSTextContainer.m
|
||||
remove unused parameters from debug outputs
|
||||
|
||||
2015-05-22 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* ChangeLog: Correct version number in last commit.
|
||||
|
|
|
@ -96,12 +96,12 @@ use bounds rectangle instead of frame? */
|
|||
NSDebugLLog(@"NSText", @"NSTextContainer initWithContainerSize");
|
||||
if (aSize.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
aSize.width = 0;
|
||||
}
|
||||
if (aSize.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
aSize.height = 0;
|
||||
}
|
||||
_layoutManager = nil;
|
||||
|
@ -246,12 +246,12 @@ framework intact.
|
|||
|
||||
if (aSize.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
aSize.width = 0;
|
||||
}
|
||||
if (aSize.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
aSize.height = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -595,12 +595,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (frameRect.size.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
frameRect.size.width = 0;
|
||||
}
|
||||
if (frameRect.size.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
frameRect.size.height = 0;
|
||||
}
|
||||
_frame = frameRect; // Set frame rectangle
|
||||
|
@ -1178,12 +1178,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
|
||||
if (frameRect.size.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
frameRect.size.width = 0;
|
||||
}
|
||||
if (frameRect.size.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
frameRect.size.height = 0;
|
||||
}
|
||||
|
||||
|
@ -1259,12 +1259,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
NSRect newFrame = _frame;
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
newSize.height = 0;
|
||||
}
|
||||
if (NSEqualSizes(_frame.size, newSize) == NO)
|
||||
|
@ -1385,12 +1385,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
NSDebugLLog(@"NSView", @"setBounds %@", NSStringFromRect(aRect));
|
||||
if (aRect.size.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
aRect.size.width = 0;
|
||||
}
|
||||
if (aRect.size.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
aRect.size.height = 0;
|
||||
}
|
||||
|
||||
|
@ -1479,12 +1479,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
newSize.height = 0;
|
||||
}
|
||||
|
||||
|
@ -1570,12 +1570,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
{
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
newSize.height = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue