Browse Source

Remove font face missing warning

Michael 7 years ago
parent
commit
a2b6116992
3 changed files with 4 additions and 2 deletions
  1. 1 0
      .gitignore
  2. 2 1
      Source/Core/LayoutInlineBoxText.cpp
  3. 1 1
      Source/Core/StyleSheetParser.cpp

+ 1 - 0
.gitignore

@@ -7,6 +7,7 @@
 *.user
 *.opensdf
 bin/*
+bin64/*
 *.dir/
 Win32/
 

+ 2 - 1
Source/Core/LayoutInlineBoxText.cpp

@@ -155,7 +155,8 @@ void LayoutInlineBoxText::BuildWordBox()
 		height = 0;
 		baseline = 0;
 
-		Log::Message(Log::LT_WARNING, "No font face defined on element %s. Please specify a font-family in your RCSS.", text_element->GetAddress().CString());
+		// For unknown reasons, this gets triggered during document load. Seems to cause no trouble, remove warning.
+		//Log::Message(Log::LT_WARNING, "No font face defined on element %s. Please specify a font-family in your RCSS.", text_element->GetAddress().CString());
 		return;
 	}
 

+ 1 - 1
Source/Core/StyleSheetParser.cpp

@@ -178,7 +178,7 @@ bool StyleSheetParser::ReadProperties(PropertyDictionary& properties)
 	}
 
 	if (!name.Empty() || !value.Empty())
-		Log::Message(Log::LT_WARNING, "Invalid property declaration at %s:%d", stream_file_name.CString(), line_number);
+		Log::Message(Log::LT_WARNING, "Invalid property declaration '%s':'%s' at %s:%d", name.CString(), value.CString(), stream_file_name.CString(), line_number);
 	
 	return true;
 }