Bug 49920 - list nuber shrink when the first letter is a superscript
Summary: list nuber shrink when the first letter is a superscript
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: 1.5 or before
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-30 09:02 UTC by Dennis Johansson
Modified: 2003-12-14 19:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Johansson 2002-10-30 09:02:34 UTC
Version:           1.2 (using KDE 3.0.3)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
OS:          Linux (i686) release 2.4.19-16mdk

I have made a nubered list and number one appears. Then I wrote chemical notation of Uranium-235 where I need to begin the sentence with a super script of 235. When this was done the 1 shrunk.
Comment 1 Lukáš Tinkl 2003-04-09 15:21:16 UTC
Reassigning to KWord as we have no "kotext" component. 
Comment 2 David Faure 2003-04-09 21:51:46 UTC
Subject: koffice/lib/kotext

CVS commit by faure: 

When taking the format of the first char of the paragraph, for the format of the
counter, filter out the vertical alignment (superscript/subscript)
CCMAIL: 49920-done@bugs.kde.org


  M +4 -1      koparagcounter.cc   1.30


--- koffice/lib/kotext/koparagcounter.cc  #1.29:1.30
@@ -597,5 +597,8 @@ int KoParagCounter::bulletX()
 KoTextFormat* KoParagCounter::counterFormat( const KoTextParag *paragraph )
 {
-    return paragraph->at( 0 )->format();
+    KoTextFormat* refFormat = paragraph->at( 0 )->format();
+    KoTextFormat format( *refFormat );
+    format.setVAlign( KoTextFormat::AlignNormal );
+    return refFormat->parent()->format( &format );
     /*paragraph->paragFormat()*/
 }