--- pageitem.cpp~	2009-01-31 12:29:03.000000000 +0100
+++ pageitem.cpp	2009-01-31 14:51:29.000000000 +0100
@@ -701,15 +701,15 @@
 }
 
 
-/// returns true if text overflows
+/// returns true if text overflows:
 bool PageItem::frameOverflows() const
 {
 #ifndef NLS_PROTO
 	// Fix #6991 : "Text overflow" warning when there is a text underflow in fact
-	/*return NextBox == NULL && itemText.length() > static_cast<int>(MaxChars);*/
+	// Fix #7766 : scribus.textOverflows() returns 0 if there is no place for the overflow mark
 	return ( NextBox == NULL )
 	       && ( static_cast<int> ( firstChar ) < itemText.length() )
-	       && ( firstChar < MaxChars )
+	       && ( firstChar <= MaxChars )
 	       && ( itemText.length() > static_cast<int> ( MaxChars ) );
 #else
 	return false; // FIXME:NLS
