| Summary: | [EasyHack] Fix duplicate longname IDs | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Björn Michaelsen <bjoern.michaelsen> |
| Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | Keywords: | difficultyBeginner, easyHack, skillScript |
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
Björn Michaelsen
2011-07-28 10:02:08 UTC
As far as I traced, HID_BG_BTN_IMG13 ~ HID_BG_BTN_IMG16 looks unused. Here is the reason: 1. This ID seems to be associated with the id HD_BG (34290), which is the first id of BackgroundsDialog (wizards/com/sun/star/wizards/web/BackgroundsDialog.java). 2. In its super class ImageListDialog, this id is incremented to 34295 and passed to ImageList. 3. In ImageList, it increments the id on creatImage(), which is called rows*cols times in the constructor. 4. However, the initial values give rows=3 and cols=4, and BackgroundDialog do not change them further, so it never reaches ids after than HID_BG_BTN_IMG12. BackgroundsDialog is used only in WebWizardDialog. This is fixed now: http://cgit.freedesktop.org/libreoffice/core/commit/?id=2ba78d1ed9fca82156eebb460b398829b5a3b6db Sorry that applying that took so long - it was forgotten :-( Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillScript ) [NinjaEdit] |