Issue 28554 - CharHeight property of Impress textshapes becomes disassociated with contained text
Summary: CharHeight property of Impress textshapes becomes disassociated with containe...
Status: CONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.1
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2004-04-30 10:17 UTC by erikanderson3
Modified: 2017-05-20 11:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description erikanderson3 2004-04-30 10:17:03 UTC
Attempted to create macro to handle user request at
http://www.oooforum.org/forum/viewtopic.php?t=8190, as a means of reducing the
point count of selected shape by one.  The following code works for shape
objects containing text with the default font size unchanged.  

However, manually changing the font size using the UI results in the code no
longer working.  The message boxes will show what the CharHeight property
contains, but the on-screen text will not change in size.  

Sub ChangeCharHeight()
	oCurr = ThisComponent.getCurrentSelection()
	If not IsNull(oCurr) then
		If (oCurr.getCount() > 0) then
			For i = 0 to oCurr.getCount() - 1
				MsgBox oCurr.getByIndex( i ).CharHeight
				oCurr.getByIndex( i ).CharHeight = oCurr.getByIndex( i ).CharHeight - 1
				MsgBox oCurr.getByIndex( i ).CharHeight
			Next i
		Else
			MsgBox "Selected item contains nothing.",48,"Empty Selection Error"
		EndIf
	Else
		MsgBox "Nothing selected",48,"Selection Error"
	EndIf
End Sub



To Reproduce --

Create a simple Impress doc with two shapes containing some text.  For one
shape, make sure to only type in text.  For the other, type in some sample text,
and also manually change the font size.  Select the first shape and run the
macro.  You should see the text shrink by one point.  Select the second shape
and run the macro.  You should see the message boxes indicating a change in
size, but the onscreen text will not change.
Comment 1 wolframgarten 2004-04-30 11:03:24 UTC
Reproducible. Reassigned to Christian.
Comment 2 flibby05 2004-04-30 14:09:57 UTC
setting to NEW
Comment 3 Marcus 2017-05-20 11:08:42 UTC
Reset assigne to the default "issues@openoffice.apache.org".