Author: mlytwyn
Date: Mon Feb 13 18:06:13 2017
New Revision: 40345

URL: http://svn.gna.org/viewcvs/gnustep?rev=40345&view=rev
Log:
Return default paragraph style from decodeDefaultParagraphStyleForElement

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m

Modified: 
libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m?rev=40345&r1=40344&r2=40345&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m   
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m   
Mon Feb 13 18:06:13 2017
@@ -1615,6 +1615,9 @@
   else
     NSWarnMLog(@"unknown base writing direction: %@", baseWritingDirection);
   
+  // Line break mode...
+  [paragraphStyle setLineBreakMode: [self decodeLineBreakModeForAttributes: 
[element attributes]]];
+  
   if (selectionGranularity == nil)
     ; // NSSelectByCharacter
   else if ([@"word" isEqualToString: selectionGranularity])
@@ -1622,8 +1625,7 @@
   else if ([@"paragraph" isEqualToString: selectionGranularity])
     ; // NSSelectByParagraph
   
-  return nil;
-  return AUTORELEASE(paragraphStyle);
+  return paragraphStyle;
 }
 
 #pragma mark - NSColor...


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to