Skip to content

Commit

Permalink
Fix label localization for xlsx (#1745) (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
speckyspooky committed Jun 22, 2024
1 parent af94371 commit 1369a85
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*************************************************************************************
* Copyright (c) 2011, 2012, 2013 James Talbut.
* Copyright (c) 2011, 2012, 2013, 2024 James Talbut and others
* jim-emitters@spudsoft.co.uk
*
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0/.
*
*
* SPDX-License-Identifier: EPL-2.0
*
*
* Contributors:
* James Talbut - Initial implementation.
************************************************************************************/
Expand Down Expand Up @@ -77,7 +77,7 @@ public void emitLabel(HandlerState state, ILabelContent label) throws BirtExcept
log.debug("Creating row ", state.rowNum, " for label");
state.currentSheet.createRow(state.rowNum);

String labelText = (label.getLabelText() != null) ? label.getLabelText() : label.getText();
String labelText = (label.getText() != null) ? label.getText() : label.getLabelText();
emitContent(state, label, labelText,
(!"inline".equals(getStyleProperty(label, StyleConstants.STYLE_DISPLAY, "block"))));

Expand Down

0 comments on commit 1369a85

Please sign in to comment.