sc/source/ui/inc/datafdlg.hxx | 1 + sc/source/ui/miscdlgs/datafdlg.cxx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-)
New commits: commit 079f21531b112f9c56b1db060caa26d4f406aeb5 Author: Caolán McNamara <caol...@redhat.com> Date: Mon Apr 15 12:15:54 2013 +0100 missing string, local resource used as if global Change-Id: I8c256668edeb4c0475136f46103002d804ee66eb diff --git a/sc/source/ui/inc/datafdlg.hxx b/sc/source/ui/inc/datafdlg.hxx index 6f41ddb..3e7d92e 100644 --- a/sc/source/ui/inc/datafdlg.hxx +++ b/sc/source/ui/inc/datafdlg.hxx @@ -64,6 +64,7 @@ private: PushButton aBtnClose; ScrollBar aSlider; FixedText aFixedText; + OUString sNewRecord; ScTabViewShell* pTabViewShell; ScDocument* pDoc; diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx b/sc/source/ui/miscdlgs/datafdlg.cxx index 69e03e8..c8810ac 100644 --- a/sc/source/ui/miscdlgs/datafdlg.cxx +++ b/sc/source/ui/miscdlgs/datafdlg.cxx @@ -54,7 +54,8 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShellOri aBtnNext ( this, ScResId( BTN_DATAFORM_NEXT ) ), aBtnClose ( this, ScResId( BTN_DATAFORM_CLOSE ) ), aSlider ( this, ScResId( WND_DATAFORM_SCROLLBAR ) ), - aFixedText ( this, ScResId( LAB_DATAFORM_RECORDNO ) ) + aFixedText ( this, ScResId( LAB_DATAFORM_RECORDNO ) ), + sNewRecord(SC_RESSTR(STR_NEW_RECORD)) { pTabViewShell = pTabViewShellOri; FreeResource(); @@ -265,7 +266,7 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/) aFixedText.SetText(aBuf.makeStringAndClear()); } else - aFixedText.SetText(String(ScResId(STR_NEW_RECORD))); + aFixedText.SetText(sNewRecord); aSlider.SetThumbPos(nCurrentRow-nStartRow-1); }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits