View Issue Details

IDProjectCategoryView StatusLast Update
0006991ScribusStory Editor / Text Framespublic2008-09-22 21:34
Reporterflorian Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformIntel 32-bitOSLinuxOS VersionopenSuSE 10.3
Product Version1.3.5svn 
Target Version1.3.5Fixed in Version1.3.5svn 
Summary0006991: "Text overflow" warning when there is a text underflow in fact
DescriptionThe preflight verifier shows a warning "text overflow" in the case of two linked text frames, when the second text frame is empty due to few text
Steps To Reproduce1) Create two text frames (large enough for some lines of text) and link them
2) Choose Menu-Edit-Edit Text... (Ctrl+Y) to type a word or two
3) The first text frame contains the typed word and some empty space, the second text frame does not display any text. The preflight verifier shows a warning "text overflow" and the second text frame shows a corresponding crossed square at its bottom-right corner.
TagsNo tags attached.
Patch

Relationships

has duplicate 0006164 closedjghali Text overflow determined 

Activities

2008-07-22 22:51

 

6991_text_overflow.patch (562 bytes)   
Index: scribus/pageitem.cpp
===================================================================
--- scribus/pageitem.cpp	(revision 12410)
+++ scribus/pageitem.cpp	(working copy)
@@ -666,7 +666,8 @@
 bool PageItem::frameOverflows() const
 {
 #ifndef NLS_PROTO
-	return NextBox == NULL && itemText.length() > static_cast<int>(MaxChars);
+	return NextBox == NULL && (static_cast<int>(firstChar) < itemText.length()) && (static_cast<int>(firstChar) < MaxChars)
+		&& (itemText.length() > static_cast<int>(MaxChars));
 #else
 	return false; // FIXME:NLS
 #endif
6991_text_overflow.patch (562 bytes)   

jghali

2008-07-22 22:52

administrator   ~0020021

I've got a patch which seems to work. Just uploaded it. Please test!

jghali

2008-07-23 22:02

administrator   ~0020025

Patch now committed

Issue History

Date Modified Username Field Change
2008-05-01 16:16 florian New Issue
2008-05-01 16:23 jghali Relationship added has duplicate 0006164
2008-05-01 16:23 jghali Target Version => 1.3.5
2008-07-22 22:51 jghali File Added: 6991_text_overflow.patch
2008-07-22 22:52 jghali Note Added: 0020021
2008-07-23 22:02 jghali Note Added: 0020025
2008-07-23 22:02 jghali Status new => resolved
2008-07-23 22:02 jghali Fixed in Version => 1.3.5svn
2008-07-23 22:02 jghali Resolution open => fixed
2008-07-23 22:02 jghali Assigned To => jghali
2008-09-22 21:34 cbradney Status resolved => closed
2015-09-17 20:08 Kunda Category Story Editor / Text Frames => Story Ed/Txt Frames
2015-09-17 20:12 Kunda Category Story Ed/Txt Frames => Story Editor / Text Frames