Bug 199671

Summary: OpenOffice.org writer shows incorrect illustration number in preview
Product: [Fedora] Fedora Reporter: James Hunt <jamesodhunt>
Component: openoffice.orgAssignee: Caolan McNamara <caolanm>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-21 09:51:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Hunt 2006-07-21 09:30:06 UTC
Description of problem:

When setting a caption for an inserted picture (illustration), the preview
window always shows "Illustration 1" when it should show "Illustration n+1"
(where 'n' is the current number of illustrations in the document).

Version-Release number of selected component (if applicable):

openoffice.org-calc-2.0.2-5.16.2
openoffice.org-core-2.0.2-5.16.2
openoffice.org-draw-2.0.2-5.16.2
openoffice.org-graphicfilter-2.0.2-5.16.2
openoffice.org-impress-2.0.2-5.16.2
openoffice.org-javafilter-2.0.2-5.16.2
openoffice.org-langpack-es-2.0.2-5.16.2
openoffice.org-math-2.0.2-5.16.2
openoffice.org-pyuno-2.0.2-5.16.2
openoffice.org-testtools-2.0.2-5.16.2
openoffice.org-writer-2.0.2-5.16.2
openoffice.org-xsltfilter-2.0.2-5.16.2


How reproducible:

Every time.

Steps to Reproduce:

1. Open new text document in Writer
2. Insert->Picture->From File...
3. select a graphic to insert
4. Right-click on graphic
5. Select "Caption..." (the Caption window will pop up).
6. Notice the bottom of the Caption windows shows a preview of how
   the caption will appear. However, if you type "foobar" into the "caption"
   field, the preview will then show, "Illustration 1: foobar" even if
   you already have other illustrations.
7. Click OK to close the caption Window.

Actual results:

The caption will be inserted with the correct Illustration number and text,
although the preview will have incorrectly showed "Illustration 1: ..."
regardless of how many existing Illustrations your document already has.

Expected results:

The preview should query the number of illustrations in the document, and add 1
to that value before showing the Illustration number in the preview.

Additional info:

Comment 1 Caolan McNamara 2006-07-21 09:51:40 UTC
Not redhat specific, moving to upstream as
http://www.openoffice.org/issues/show_bug.cgi?id=67650