# HG changeset patch # User Rik # Date 1547742532 28800 # Node ID 73654374b86f0c9a66866b31c3da19c2f1e56c12 # Parent 8bed6950dddef1a1c35cead76326223e5b4bc105# Parent bf05a7c16e9e014ecf36878fe1c7019e60eae531 maint: merge stable to default. diff -r 8bed6950ddde -r 73654374b86f libgui/languages/ja_JP.ts --- a/libgui/languages/ja_JP.ts Wed Jan 16 11:56:09 2019 -0800 +++ b/libgui/languages/ja_JP.ts Thu Jan 17 08:28:52 2019 -0800 @@ -102,7 +102,7 @@ Run Selection - 選択部を実行 + 選択部を実行 @@ -374,12 +374,12 @@ C# verbatim string - + C# verbatim 文字列 Inactive C# verbatim string - + C# verbatim 文字列をインアクティブ @@ -608,7 +608,7 @@ Hash - ハッシ + ハッシュ @@ -1045,36 +1045,39 @@ Could not copy help collection to temporary file. Search capabilities may be affected. %1 - + ヘルプコレクション一時ファイルびコピーできませんでした. +検索機能に影響があるかもしれません. +%1 Could not setup the data required for the documentation viewer. Only help texts in the Command Window will be available. - + ドキュメントビューワーに必要なデータを +設定できませんでした.コマンドウィンドウのヘルプテキストのみが使用可能です. Find: - + 検索: Search forward - + 前方検索 Search backward - + 後方検索 Function Index - + 関数インデックス @@ -1094,17 +1097,17 @@ Find - 検索 + 検索 Zoom in - + ズームイン Zoom out - + ズームアウト @@ -1130,17 +1133,17 @@ Previous pages - + 前のページ Next pages - + 次のページ Unable to register help file %1. - + ヘルプファイル %1 を登録できません. @@ -1161,17 +1164,17 @@ &Close - 閉じる (&C) + 閉じる (&C) Close &All - + 全てを閉じる (&A) Close &Other - + 他を閉じる (&O) @@ -1735,29 +1738,32 @@ with the selected encoding %2. Modifying and saving the file might cause data loss! - + 選択されたエンコード %2 でファイル %1 を読み込む時に +問題が生じました. + +修正して保存するをデータが失われるかもしれません ! &Edit anyway - + 編集を強行 (&E) Chan&ge encoding - + エンコードの変更 (&g) &Close - 閉じる (&C) + 閉じる (&C) Select new default encoding - + 新しい既定を選択 @@ -1766,7 +1772,10 @@ This does not change the default encoding. - + 現在のファイルをリロードするための新しいエンコード +選択してください. + +これは既定のエンコードに影響を与えません. @@ -1792,7 +1801,10 @@ can not be applied. Please select another one! - + 現在のエンコード %1 +は適用できません. + +他のエンコードを選択してください ! @@ -1801,7 +1813,9 @@ Using it would result in data loss! Please select another one! - + 現在のエディタの内容は選択されたエンコード %1 ではエンコードできません. +このままではデータが消失します ! +他のエンコードを選択してください ! @@ -1822,7 +1836,13 @@ call your script using its name as an Octave command. Do you want to choose another name? - + "%1" +は正しい identifier ではありません. + +もしこのファイル名のままにすれば, スクリプトをこの名前で +Octave のコマンドとしてコールできません.. + +他の名前を選択しますか ? @@ -1951,7 +1971,7 @@ Double-click to open file/folder, right click for alternatives - + ダブルクリックでファイル / フォルダを開く,右クリックでオルタナティブ @@ -2444,7 +2464,7 @@ Double-click a command to transfer it to the Command Window. - + ダブルクリックでコマンドをコマンドウィンドウに移します. @@ -2581,7 +2601,8 @@ %1 is a built-in, compiled or inline function and can not be edited. - + %1 は組み込み, コンパイルされた, またはインライン関数であり, +編集できません. @@ -3124,7 +3145,7 @@ Hide tools tips - + ツールのティップスを隠す @@ -3137,7 +3158,7 @@ Previous - + @@ -3461,12 +3482,12 @@ Move Tab Left - + 左タブに移動 Move Tab Right - + 右タブに移動 @@ -3703,22 +3724,22 @@ Documentation Viewer - + ドキュメントビューワー Browser - + ブラウザ Import shortcuts from file... - + ファイルからショートカットをインポート - Export shortcuts to file... - + ファイルへショートカットをエキスポート + @@ -3784,17 +3805,17 @@ Go to Homepage - + ホームページへ Go Back one Page - + 1 ページ戻る Go Forward one Page - + 1 ページ進む @@ -3843,12 +3864,12 @@ Find & Replace in Dock Widgets - + ドックウィジェットで検索と置換 Zooming in Editor and Documentation - + エディタとドキュメントでズーム @@ -3970,17 +3991,17 @@ Selected Foreground - + 選択された前景 Selected Background - + 選択された後景 Alternate Background - + 後景をオルタネート @@ -4577,7 +4598,7 @@ (requires restart) - + (要再起動) @@ -4587,52 +4608,52 @@ Use system icon theme if available (requires restart) - + 使用可能ならシステムのアイコンテーマを使用 Toolbar Icons - + ツールバーアイコン Language - + 言語 Style - + スタイル Initial working directory of Octave interpreter - + Octave インタープリタの初期された作業ディレクトリ Restore last working directory of previous session - + 前のセッションの作業ディレクトリをリストア Command - コマンド + コマンド Set focus to Command Window when running a command from within another widget - + 他のウィジェットからコマンドが操作中のコマンドウィンドウにフォーカスをセット Print debug location in Command Window in addition to the marker in the editor - + エディタ中のマーカーに加えたコマンドウィンドウ中にデバッグの位置を表示 Command Window Colors - + コマンドウィンドウのカラー @@ -4722,7 +4743,7 @@ Debugging - + デバッグ @@ -4758,7 +4779,7 @@ Initial file browser directory (only if not synchronized with initial working directory of Octave) - + 初期のファイルブラウザのディレクトリ(Octave の初期作業ディレクトリとシンクロしないとき) @@ -4869,7 +4890,7 @@ Disable global shortcuts when Command Window has focus - + コマンドウィンドウフォーカス時大域的なショートカットを使用しない diff -r 8bed6950ddde -r 73654374b86f libinterp/corefcn/find.cc --- a/libinterp/corefcn/find.cc Wed Jan 16 11:56:09 2019 -0800 +++ b/libinterp/corefcn/find.cc Thu Jan 17 08:28:52 2019 -0800 @@ -408,8 +408,6 @@ int direction = 1; if (nargin > 2) { - direction = 0; - std::string s_arg = args(2).string_value (); if (s_arg == "first") diff -r 8bed6950ddde -r 73654374b86f libinterp/corefcn/gl-render.cc --- a/libinterp/corefcn/gl-render.cc Wed Jan 16 11:56:09 2019 -0800 +++ b/libinterp/corefcn/gl-render.cc Thu Jan 17 08:28:52 2019 -0800 @@ -3875,10 +3875,10 @@ if (vp_lim_min(0) > vp_lim_max(0)) std::swap (vp_lim_min(0), vp_lim_max(0)); - + if (vp_lim_min(1) > vp_lim_max(1)) std::swap (vp_lim_min(1), vp_lim_max(1)); - + float clip_xmin = (do_clip ? (vp_lim_min(0) > xmin ? vp_lim_min(0) : xmin) : vp_lim_min(0)); float clip_ymin = @@ -4246,21 +4246,26 @@ { #if defined (HAVE_OPENGL) + int factor = math::round (linewidth * m_devpixratio); + if (factor < 1) + factor = 1; + + uint16_t pattern = 0xFFFF; + bool solid = false; if (s == "-") - { - m_glfcns.glLineStipple (1, static_cast (0xFFFF)); - solid = true; - } + solid = true; else if (s == ":") - m_glfcns.glLineStipple (linewidth, static_cast (0x5555)); + pattern = 0x5555; else if (s == "--") - m_glfcns.glLineStipple (linewidth, static_cast (0x0F0F)); + pattern = 0x0F0F; else if (s == "-.") - m_glfcns.glLineStipple (linewidth, static_cast (0x6F6F)); + pattern = 0x6F6F; else - m_glfcns.glLineStipple (1, static_cast (0x0000)); + pattern = 0x0000; + + m_glfcns.glLineStipple (factor, pattern); if (solid && ! use_stipple) m_glfcns.glDisable (GL_LINE_STIPPLE); diff -r 8bed6950ddde -r 73654374b86f libinterp/corefcn/oct-map.cc --- a/libinterp/corefcn/oct-map.cc Wed Jan 16 11:56:09 2019 -0800 +++ b/libinterp/corefcn/oct-map.cc Thu Jan 17 08:28:52 2019 -0800 @@ -124,7 +124,7 @@ octave_fields::equal_up_to_order (const octave_fields& other, octave_idx_type *perm) const { - bool retval = true; + bool retval; auto p = begin (); auto q = other.begin (); @@ -133,10 +133,7 @@ if (p->first == q->first) perm[p->second] = q->second; else - { - retval = false; - break; - } + return false; } retval = (p == end () && q == other.end ()); diff -r 8bed6950ddde -r 73654374b86f libinterp/corefcn/oct-stream.cc --- a/libinterp/corefcn/oct-stream.cc Wed Jan 16 11:56:09 2019 -0800 +++ b/libinterp/corefcn/oct-stream.cc Thu Jan 17 08:28:52 2019 -0800 @@ -914,7 +914,6 @@ modifier = '\0'; type = '\0'; buf << s[i++]; - empty_buf = false; } break; } @@ -2993,8 +2992,8 @@ if (! is.eof () && ! as_empty) { - state = is.rdstate (); // before tellg, since that fails at EOF - pos = is.tellg (); + state = is.rdstate (); // before tellg, since that fails at EOF + ch = is.peek (); // ch == EOF if read failed; no need to chk fail if (ch == 'i' || ch == 'j') // pure imaginary { diff -r 8bed6950ddde -r 73654374b86f libinterp/corefcn/regexp.cc --- a/libinterp/corefcn/regexp.cc Wed Jan 16 11:56:09 2019 -0800 +++ b/libinterp/corefcn/regexp.cc Thu Jan 17 08:28:52 2019 -0800 @@ -107,7 +107,6 @@ } if (bad_esc_seq || (brace && s[k++] != '}')) { - bad_esc_seq = true; tmpi = 0; warning (R"(malformed octal escape sequence '\o' -- converting to '\0')"); } diff -r 8bed6950ddde -r 73654374b86f libinterp/octave-value/ov-java.cc --- a/libinterp/octave-value/ov-java.cc Wed Jan 16 11:56:09 2019 -0800 +++ b/libinterp/octave-value/ov-java.cc Thu Jan 17 08:28:52 2019 -0800 @@ -1811,7 +1811,6 @@ } else { - found = false; error ("cannot convert matrix of type '%s'", val.class_name ().c_str ()); } diff -r 8bed6950ddde -r 73654374b86f liboctave/array/dSparse.cc --- a/liboctave/array/dSparse.cc Wed Jan 16 11:56:09 2019 -0800 +++ b/liboctave/array/dSparse.cc Thu Jan 17 08:28:52 2019 -0800 @@ -4717,9 +4717,10 @@ double anorm; if (calc_cond) { + anorm = 0.0; for (octave_idx_type j = 0; j < nr; j++) { - double atmp = 0.; + double atmp = 0.0; for (octave_idx_type i = cidx (j); i < cidx (j+1); i++) atmp += fabs (data (i)); if (atmp > anorm) @@ -5056,9 +5057,10 @@ double anorm; if (calc_cond) { + anorm = 0.0; for (octave_idx_type j = 0; j < nr; j++) { - double atmp = 0.; + double atmp = 0.0; for (octave_idx_type i = cidx (j); i < cidx (j+1); i++) atmp += fabs (data (i)); if (atmp > anorm) @@ -5410,9 +5412,10 @@ double anorm; if (calc_cond) { + anorm = 0.0; for (octave_idx_type j = 0; j < nr; j++) { - double atmp = 0.; + double atmp = 0.0; for (octave_idx_type i = cidx (j); i < cidx (j+1); i++) atmp += fabs (data (i)); if (atmp > anorm) diff -r 8bed6950ddde -r 73654374b86f scripts/plot/util/print.m --- a/scripts/plot/util/print.m Wed Jan 16 11:56:09 2019 -0800 +++ b/scripts/plot/util/print.m Thu Jan 17 08:28:52 2019 -0800 @@ -116,6 +116,7 @@ ## @qcode{"Renderer"} property. When the figure @code{RendererMode} property ## is @qcode{"auto"} Octave will use the @qcode{"opengl"} renderer for raster ## formats (e.g., JPEG) and @qcode{"painters"} for vector formats (e.g., PDF). +## Those options are only supported for the "qt" graphics tookit. ## ## @item -svgconvert ## For OpenGL-based graphic toolkits, this enables a different backend diff -r 8bed6950ddde -r 73654374b86f scripts/plot/util/private/__print_parse_opts__.m --- a/scripts/plot/util/private/__print_parse_opts__.m Wed Jan 16 11:56:09 2019 -0800 +++ b/scripts/plot/util/private/__print_parse_opts__.m Thu Jan 17 08:28:52 2019 -0800 @@ -229,14 +229,28 @@ if (strcmp (arg_st.renderer, "auto")) if (opengl_ok && strcmp (graphics_toolkit (arg_st.figure), "qt")) - arg_st.renderer = "opengl"; + ## "opengl" renderer only does text rotations of 0°, 90°, 180°, 270°, ... + ht = findall (arg_st.figure, "type", "text"); + angles = [get(ht, "rotation"){:}]; + if (any (mod (angles, 90))) + arg_st.renderer = "painters"; + else + arg_st.renderer = "opengl"; + endif else arg_st.renderer = "painters"; endif elseif (strcmp (arg_st.renderer, "opengl") && ! opengl_ok) arg_st.renderer = "painters"; - warning (["print: unsupported output format \"%s\" for renderer ", ... - "\"opengl\"."], arg_st.devopt); + warning (['print: unsupported output format "%s" for renderer ', ... + '"opengl".'], arg_st.devopt); + elseif (! strcmp (graphics_toolkit (arg_st.figure), "qt") + && strcmp (arg_st.renderer, "opengl")) + ## The opengl renderer only works with the "qt" toolkit + arg_st.renderer = "painters"; + warning ('Octave:print:unsupported-renderer', + 'print: "opengl" renderer unsupported for "%s" toolkit', + graphics_toolkit (arg_st.figure)); endif