Kaydet (Commit) 079f2153 authored tarafından Caolán McNamara's avatar Caolán McNamara

missing string, local resource used as if global

Change-Id: I8c256668edeb4c0475136f46103002d804ee66eb
üst abc5c418
...@@ -64,6 +64,7 @@ private: ...@@ -64,6 +64,7 @@ private:
PushButton aBtnClose; PushButton aBtnClose;
ScrollBar aSlider; ScrollBar aSlider;
FixedText aFixedText; FixedText aFixedText;
OUString sNewRecord;
ScTabViewShell* pTabViewShell; ScTabViewShell* pTabViewShell;
ScDocument* pDoc; ScDocument* pDoc;
......
...@@ -54,7 +54,8 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShellOri ...@@ -54,7 +54,8 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShellOri
aBtnNext ( this, ScResId( BTN_DATAFORM_NEXT ) ), aBtnNext ( this, ScResId( BTN_DATAFORM_NEXT ) ),
aBtnClose ( this, ScResId( BTN_DATAFORM_CLOSE ) ), aBtnClose ( this, ScResId( BTN_DATAFORM_CLOSE ) ),
aSlider ( this, ScResId( WND_DATAFORM_SCROLLBAR ) ), 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; pTabViewShell = pTabViewShellOri;
FreeResource(); FreeResource();
...@@ -265,7 +266,7 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/) ...@@ -265,7 +266,7 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
aFixedText.SetText(aBuf.makeStringAndClear()); aFixedText.SetText(aBuf.makeStringAndClear());
} }
else else
aFixedText.SetText(String(ScResId(STR_NEW_RECORD))); aFixedText.SetText(sNewRecord);
aSlider.SetThumbPos(nCurrentRow-nStartRow-1); aSlider.SetThumbPos(nCurrentRow-nStartRow-1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment